Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: chrome/browser/ui/settings_window_manager.cc

Issue 332163006: Manage settings window icon for multi profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browsertest Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/settings_window_manager.h ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/settings_window_manager.cc
diff --git a/chrome/browser/ui/settings_window_manager.cc b/chrome/browser/ui/settings_window_manager.cc
index fa00fed7db209ca87bc1ff59c2b10cc15bb623f2..5bbae78d68a2e760c382ff4343ede894810b1afa 100644
--- a/chrome/browser/ui/settings_window_manager.cc
+++ b/chrome/browser/ui/settings_window_manager.cc
@@ -74,6 +74,13 @@ Browser* SettingsWindowManager::FindBrowserForProfile(Profile* profile) {
return NULL;
}
+bool SettingsWindowManager::IsSettingsBrowser(Browser* browser) const {
+ ProfileSessionMap::const_iterator iter =
+ settings_session_map_.find(browser->profile());
+ return (iter != settings_session_map_.end() &&
+ iter->second == browser->session_id().id());
+}
+
SettingsWindowManager::SettingsWindowManager() {
}
« no previous file with comments | « chrome/browser/ui/settings_window_manager.h ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698