Chromium change: https://chromium.googlesource.com/chromium/src/+/ae8cac697403b3f2b540407082a384f09e764e70 commit ae8cac697403b3f2b540407082a384f09e764e70 Author: Marc Treib <treib@chromium.org> Date: Tue Jan 28 12:10:12 2020 +0000 Cleanup: Delete GCMChannelStatusSyncer It was used to check if "GCM is enabled" by calling a special API on the Sync service, but in practice this has always been true for years. Removing this code will let us (eventually) shut down this API. Bug: 1009361
27 lines
932 B
C++
27 lines
932 B
C++
/* Copyright (c) 2019 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "brave/test/base/brave_testing_profile.h"
|
|
|
|
#include "brave/browser/profiles/profile_util.h"
|
|
#include "brave/common/pref_names.h"
|
|
#include "components/gcm_driver/gcm_buildflags.h"
|
|
#include "components/prefs/pref_service.h"
|
|
|
|
BraveTestingProfile::BraveTestingProfile(const base::FilePath& path,
|
|
Delegate* delegate)
|
|
: TestingProfile(path, delegate) {
|
|
if (brave::IsSessionProfilePath(path)) {
|
|
brave::CreateParentProfileData(this);
|
|
}
|
|
}
|
|
|
|
BraveTestingProfile::BraveTestingProfile()
|
|
: TestingProfile() {
|
|
#if !BUILDFLAG(USE_GCM_FROM_PLATFORM)
|
|
GetPrefs()->SetBoolean(kBraveGCMChannelStatus, true);
|
|
#endif
|
|
}
|