| 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 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 void UrlHashHelper::ExecuteUrlHash() { | 201 void UrlHashHelper::ExecuteUrlHash() { |
| 202 if (hash_ == profiles::kUserManagerSelectProfileAppLauncher) { | 202 if (hash_ == profiles::kUserManagerSelectProfileAppLauncher) { |
| 203 AppListService* app_list_service = AppListService::Get(desktop_type_); | 203 AppListService* app_list_service = AppListService::Get(desktop_type_); |
| 204 app_list_service->ShowForProfile(profile_); | 204 app_list_service->ShowForProfile(profile_); |
| 205 return; | 205 return; |
| 206 } | 206 } |
| 207 | 207 |
| 208 Browser* target_browser = browser_; | 208 Browser* target_browser = browser_; |
| 209 if (!target_browser) { | 209 if (!target_browser) { |
| 210 target_browser = chrome::FindLastActiveWithProfile(profile_, desktop_type_); | 210 target_browser = chrome::FindLastActiveWithProfile(profile_); |
| 211 if (!target_browser) | 211 if (!target_browser) |
| 212 return; | 212 return; |
| 213 } | 213 } |
| 214 | 214 |
| 215 if (hash_ == profiles::kUserManagerSelectProfileTaskManager) | 215 if (hash_ == profiles::kUserManagerSelectProfileTaskManager) |
| 216 chrome::OpenTaskManager(target_browser); | 216 chrome::OpenTaskManager(target_browser); |
| 217 else if (hash_ == profiles::kUserManagerSelectProfileAboutChrome) | 217 else if (hash_ == profiles::kUserManagerSelectProfileAboutChrome) |
| 218 chrome::ShowAboutChrome(target_browser); | 218 chrome::ShowAboutChrome(target_browser); |
| 219 else if (hash_ == profiles::kUserManagerSelectProfileChromeSettings) | 219 else if (hash_ == profiles::kUserManagerSelectProfileChromeSettings) |
| 220 chrome::ShowSettings(target_browser); | 220 chrome::ShowSettings(target_browser); |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 Profile* profile, Profile::CreateStatus profile_create_status) { | 1016 Profile* profile, Profile::CreateStatus profile_create_status) { |
| 1017 Browser* browser = chrome::FindAnyBrowser(profile, false, desktop_type_); | 1017 Browser* browser = chrome::FindAnyBrowser(profile, false, desktop_type_); |
| 1018 if (browser && browser->window()) { | 1018 if (browser && browser->window()) { |
| 1019 OnBrowserWindowReady(browser); | 1019 OnBrowserWindowReady(browser); |
| 1020 } else { | 1020 } else { |
| 1021 registrar_.Add(this, | 1021 registrar_.Add(this, |
| 1022 chrome::NOTIFICATION_BROWSER_WINDOW_READY, | 1022 chrome::NOTIFICATION_BROWSER_WINDOW_READY, |
| 1023 content::NotificationService::AllSources()); | 1023 content::NotificationService::AllSources()); |
| 1024 } | 1024 } |
| 1025 } | 1025 } |
| OLD | NEW |