| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" | 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 if (!target_browser) | 193 if (!target_browser) |
| 194 return; | 194 return; |
| 195 } | 195 } |
| 196 | 196 |
| 197 if (hash_ == profiles::kUserManagerSelectProfileTaskManager) | 197 if (hash_ == profiles::kUserManagerSelectProfileTaskManager) |
| 198 chrome::OpenTaskManager(target_browser); | 198 chrome::OpenTaskManager(target_browser); |
| 199 else if (hash_ == profiles::kUserManagerSelectProfileAboutChrome) | 199 else if (hash_ == profiles::kUserManagerSelectProfileAboutChrome) |
| 200 chrome::ShowAboutChrome(target_browser); | 200 chrome::ShowAboutChrome(target_browser); |
| 201 else if (hash_ == profiles::kUserManagerSelectProfileChromeSettings) | 201 else if (hash_ == profiles::kUserManagerSelectProfileChromeSettings) |
| 202 chrome::ShowSettings(target_browser); | 202 chrome::ShowSettings(target_browser); |
| 203 else if (hash_ == profiles::kUserManagerSelectProfileChromeMemory) | |
| 204 chrome::ShowMemory(target_browser); | |
| 205 } | 203 } |
| 206 | 204 |
| 207 void HandleLogRemoveUserWarningShown(const base::ListValue* args) { | 205 void HandleLogRemoveUserWarningShown(const base::ListValue* args) { |
| 208 ProfileMetrics::LogProfileDeleteUser( | 206 ProfileMetrics::LogProfileDeleteUser( |
| 209 ProfileMetrics::DELETE_PROFILE_USER_MANAGER_SHOW_WARNING); | 207 ProfileMetrics::DELETE_PROFILE_USER_MANAGER_SHOW_WARNING); |
| 210 } | 208 } |
| 211 | 209 |
| 212 } // namespace | 210 } // namespace |
| 213 | 211 |
| 214 // ProfileUpdateObserver ------------------------------------------------------ | 212 // ProfileUpdateObserver ------------------------------------------------------ |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 Profile* profile, Profile::CreateStatus profile_create_status) { | 976 Profile* profile, Profile::CreateStatus profile_create_status) { |
| 979 Browser* browser = chrome::FindAnyBrowser(profile, false); | 977 Browser* browser = chrome::FindAnyBrowser(profile, false); |
| 980 if (browser && browser->window()) { | 978 if (browser && browser->window()) { |
| 981 OnBrowserWindowReady(browser); | 979 OnBrowserWindowReady(browser); |
| 982 } else { | 980 } else { |
| 983 registrar_.Add(this, | 981 registrar_.Add(this, |
| 984 chrome::NOTIFICATION_BROWSER_WINDOW_READY, | 982 chrome::NOTIFICATION_BROWSER_WINDOW_READY, |
| 985 content::NotificationService::AllSources()); | 983 content::NotificationService::AllSources()); |
| 986 } | 984 } |
| 987 } | 985 } |
| OLD | NEW |