Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update patches from Chromium 76.0.3809.100 to Chromium 77.0.3865.19 #3120

Closed
wants to merge 36 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0c70e73
Update patches from Chromium 76.0.3809.87 to Chromium 77.0.3865.19
mkarolin Jul 24, 2019
7150429
Process version shouldn't create a source set.
mkarolin Jul 24, 2019
136e1fe
Updated chrome_constants override with the changes in the original.
mkarolin Jul 25, 2019
626b41b
OmniboxInputType::INVALID was renamed to EMPTY.
mkarolin Jul 25, 2019
e01a9a4
Updated HandleExternalProtocol signature in BraveContentBrowserClient.
mkarolin Jul 31, 2019
2fc72e6
Updated signature of BraveExtensionsAPIClient::ShouldHideBrowserNetwo…
mkarolin Jul 31, 2019
0cdc1d1
AddRestoredTab now takes a tab group param.
mkarolin Jul 31, 2019
e3aa8cb
content/public interfaces are no longer const.
mkarolin Jul 31, 2019
d2b9de6
.idl files aren't allowed in GN sources.
mkarolin Aug 2, 2019
39124f5
Readded code to get top document GURL in NavigationRequest.
mkarolin Aug 2, 2019
d44f660
Moved start of Brave services to BraveBrowserMainExtraParts::PreMainM…
mkarolin Aug 2, 2019
b4c034f
PrefProvider::is_incognito_ was renamed to off_the_record_.
mkarolin Aug 2, 2019
9b43132
APISignature::ParseArgumentsToJSON signature change.
mkarolin Aug 5, 2019
a5b40a3
ComponentLoader ctor signature change.
mkarolin Aug 5, 2019
4815dfe
SimplifyHttpsIndicator feature is now on by default.
mkarolin Aug 5, 2019
1ae164e
Removed Win10 specific welcome UI flow.
mkarolin Aug 6, 2019
0029eb0
Signin restructure.
mkarolin Aug 6, 2019
bd8a2d1
Use base::Contains instead of ContainsKey.
mkarolin Aug 6, 2019
e1b3b7c
IOThread class has been removed.
mkarolin Aug 6, 2019
6b73802
Fixes compilation of brave_actions_container.h
mkarolin Aug 6, 2019
bb83a37
views::BoxLayout orientation is now a class enum.
mkarolin Aug 6, 2019
3c16cc8
BookmarkNode::set_type was removed.
mkarolin Aug 5, 2019
31d0175
Fixes RenderViewContextMenu override compilation.
mkarolin Aug 6, 2019
0e0f4c8
BookmarkChangeProcessor overrides now use size_t.
mkarolin Aug 6, 2019
a2c56a3
TreeNode::GetChild and child_count were removed.
mkarolin Aug 7, 2019
5fe1e32
Enable networking service.
mkarolin Aug 10, 2019
c7653af
Fixes location change of md_select_css.html.
mkarolin Aug 13, 2019
3cc1f42
Unit tests: Fixes MCSClient API signature changes.
mkarolin Aug 12, 2019
5898235
GridLayout::AddView now takes unique_ptr.
mkarolin Aug 13, 2019
762a6a3
GridLayout c'tor signature change.
mkarolin Aug 13, 2019
96a4bf5
Update strings for 77.0.3865.19.
mkarolin Jul 25, 2019
6ce7fa0
Unit tests: fixes GCMDriver c'tor signature change.
mkarolin Aug 12, 2019
eb8c743
Unit tests: Fixes CreateProfileAsyncHelper signature.
mkarolin Aug 12, 2019
9185b40
TEMPORARY: bookmarks workaround. #2010 Pending.
mkarolin Aug 9, 2019
f3a7ed8
TEMPORARY: network delegate workaround. #2988 Pending.
mkarolin Aug 9, 2019
0bf3cec
TEMPORARY: cookies workaround. #3130 Pending.
mkarolin Aug 10, 2019
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Unit tests: Fixes CreateProfileAsyncHelper signature.

ProfileManagerWithoutInit::CreateProfileAsyncHelper overridden in
TorUnittestProfileManager now returns unique_ptr to Profile.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/8f0b748a630d30d0cdc08cd2e4b6dd64b139e97b

commit 8f0b748a630d30d0cdc08cd2e4b6dd64b139e97b
Author: Daniel Hosseinian <dhoss@chromium.org>
Date:   Fri Jun 7 18:21:04 2019 +0000

    ProfileManager::RegisterTestingProfile() now takes a std::unique_ptr

    This commit clarifies previously established ownership semantics of
    Profiles within ProfileManager through the use of unique pointers.
    Changes were made to the parameters of
    ProfileManager::RegisterTestingProfile() and
    ProfileManager::RegisterProfile() to take a std::unique_ptr instead of a
    raw pointer. A further change was made to the return type of
    ProfileManager::CreateProfileAsyncHelper() from a raw pointer to a
    unique pointer. All callers to the aforementioned functions (including
    unit tests) that made calls to the two functions are updated to pass in
    unique pointers.

    Bug: 968187
  • Loading branch information
mkarolin committed Aug 12, 2019
commit eb8c7433ce5a204e1c192f3795e972b2337e9c3e
@@ -24,11 +24,12 @@ Profile* TorUnittestProfileManager::CreateProfileHelper(
if (!base::CreateDirectory(path))
return nullptr;
}
return CreateProfile(path, nullptr);
return CreateProfile(path, nullptr).release();
}

Profile* TorUnittestProfileManager::CreateProfileAsyncHelper(
const base::FilePath& path, Delegate* delegate) {
std::unique_ptr<Profile> TorUnittestProfileManager::CreateProfileAsyncHelper(
const base::FilePath& path,
Delegate* delegate) {
// ThreadTaskRunnerHandle::Get() is TestingProfile's "async" IOTaskRunner
// (ref. TestingProfile::GetIOTaskRunner()).
base::ThreadTaskRunnerHandle::Get()->PostTask(
@@ -46,7 +47,7 @@ void TorUnittestProfileManager::InitProfileUserPrefs(Profile* profile) {
}
}

Profile* TorUnittestProfileManager::CreateProfile(
std::unique_ptr<Profile> TorUnittestProfileManager::CreateProfile(
const base::FilePath& path, Delegate* delegate) {
TestingProfile::Builder profile_builder;
sync_preferences::PrefServiceMockFactory factory;
@@ -58,6 +59,5 @@ Profile* TorUnittestProfileManager::CreateProfile(
profile_builder.SetPrefService(std::move(prefs));
profile_builder.SetPath(path);
profile_builder.SetDelegate(delegate);
std::unique_ptr<TestingProfile> profile = profile_builder.Build();
return profile.release();
return profile_builder.Build();
}
@@ -17,13 +17,14 @@ class TorUnittestProfileManager : public ProfileManagerWithoutInit {
protected:
Profile* CreateProfileHelper(const base::FilePath& path) override;

Profile* CreateProfileAsyncHelper(const base::FilePath& path,
Delegate* delegate) override;
std::unique_ptr<Profile> CreateProfileAsyncHelper(
const base::FilePath& path,
Delegate* delegate) override;

void InitProfileUserPrefs(Profile* profile) override;

private:
Profile* CreateProfile(const base::FilePath& path, Delegate* delegate);
std::unique_ptr<Profile> CreateProfile(const base::FilePath& path, Delegate* delegate);
};

#endif // BRAVE_BROWSER_PROFILES_TOR_UNITTEST_PROFILE_MANAGER_H_
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.