Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add plumbing to Settings to be passed the current Profile.
This should be used instead of calling getLastUsedRegularProfile() everywhere. BUG=1410601 Change-Id: Ia3a7748f35247ed798e517653631811071d7c412 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4200999 Reviewed-by: Theresa Sullivan <twellington@chromium.org> Commit-Queue: Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/main@{#1098208}
- Loading branch information
Ted Choc
authored and
Chromium LUCI CQ
committed
Jan 28, 2023
1 parent
9c616cc
commit 0f10936
Showing
12 changed files
with
102 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ttings/android/java/src/org/chromium/chrome/browser/settings/ProfileDependentSetting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
package org.chromium.chrome.browser.settings; | ||
|
||
import org.chromium.chrome.browser.profiles.Profile; | ||
|
||
/** | ||
* Specifies that this settings entry is dependent on the current profile. | ||
*/ | ||
public interface ProfileDependentSetting { | ||
/** | ||
* @param profile The currently selected profile. | ||
*/ | ||
void setProfile(Profile profile); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.