`BraveTestingProfile` is used as a substitution, and it therefore it must match the parent class constructor change. Chromium change: https://chromium.googlesource.com/chromium/src/+/bb1ae862cc7112b9615fc08ca43a885aecef00e7 commit bb1ae862cc7112b9615fc08ca43a885aecef00e7 Author: Hidehiko Abe <hidehiko@chromium.org> Date: Tue Aug 27 05:08:43 2024 +0000 Add CreateMode parameter to TestingProfile's ctor Also TestingProfile::Builder starts to support CreateMode. Bug: 341267441 Test: Tryjob
22 lines
881 B
C++
22 lines
881 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/components/constants/pref_names.h"
|
|
#include "components/gcm_driver/gcm_buildflags.h"
|
|
#include "components/prefs/pref_service.h"
|
|
|
|
BraveTestingProfile::BraveTestingProfile(const base::FilePath& path,
|
|
Delegate* delegate,
|
|
CreateMode create_mode)
|
|
: TestingProfile(path, delegate, create_mode) {}
|
|
|
|
BraveTestingProfile::BraveTestingProfile() : TestingProfile() {
|
|
#if !BUILDFLAG(USE_GCM_FROM_PLATFORM)
|
|
GetPrefs()->SetBoolean(kBraveGCMChannelStatus, true);
|
|
#endif
|
|
}
|