TestingProfile override to add cration_time arg

`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
This commit is contained in:
Claudio DeSouza
2024-10-03 17:06:18 +01:00
parent 91bf82a637
commit ca0566ba67
2 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -10,8 +10,9 @@
#include "components/prefs/pref_service.h"
BraveTestingProfile::BraveTestingProfile(const base::FilePath& path,
Delegate* delegate)
: TestingProfile(path, delegate) {}
Delegate* delegate,
CreateMode create_mode)
: TestingProfile(path, delegate, create_mode) {}
BraveTestingProfile::BraveTestingProfile() : TestingProfile() {
#if !BUILDFLAG(USE_GCM_FROM_PLATFORM)
+3 -1
View File
@@ -11,7 +11,9 @@
class BraveTestingProfile : public TestingProfile {
public:
BraveTestingProfile();
BraveTestingProfile(const base::FilePath& path, Delegate* delegate);
BraveTestingProfile(const base::FilePath& path,
Delegate* delegate,
CreateMode create_mode);
~BraveTestingProfile() override = default;
};