| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/login_ui_service.h" | 5 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
| 10 #include "chrome/browser/ui/browser_navigator.h" | 10 #include "chrome/browser/ui/browser_navigator.h" |
| 11 #include "chrome/browser/ui/chrome_pages.h" | 11 #include "chrome/browser/ui/chrome_pages.h" |
| 12 #include "chrome/browser/ui/host_desktop.h" | 12 #include "chrome/browser/ui/host_desktop.h" |
| 13 #include "chrome/browser/ui/sync/inline_login_dialog.h" | 13 #include "chrome/browser/ui/sync/inline_login_dialog.h" |
| 14 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 14 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 15 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
| 15 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | |
| 16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
| 17 | 17 |
| 18 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
| 19 #include "chrome/browser/app_mode/app_mode_utils.h" | 19 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 LoginUIService::LoginUIService(Profile* profile) | 22 LoginUIService::LoginUIService(Profile* profile) |
| 23 : ui_(NULL), profile_(profile) { | 23 : ui_(NULL), profile_(profile) { |
| 24 } | 24 } |
| 25 | 25 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 50 void LoginUIService::ShowLoginPopup() { | 50 void LoginUIService::ShowLoginPopup() { |
| 51 #if defined(OS_CHROMEOS) | 51 #if defined(OS_CHROMEOS) |
| 52 if (chrome::IsRunningInForcedAppMode()) | 52 if (chrome::IsRunningInForcedAppMode()) |
| 53 InlineLoginDialog::Show(profile_); | 53 InlineLoginDialog::Show(profile_); |
| 54 #else | 54 #else |
| 55 Browser* browser = FindOrCreateTabbedBrowser(profile_, | 55 Browser* browser = FindOrCreateTabbedBrowser(profile_, |
| 56 chrome::GetActiveDesktop()); | 56 chrome::GetActiveDesktop()); |
| 57 chrome::ShowBrowserSignin(browser, SyncPromoUI::SOURCE_APP_LAUNCHER); | 57 chrome::ShowBrowserSignin(browser, SyncPromoUI::SOURCE_APP_LAUNCHER); |
| 58 #endif | 58 #endif |
| 59 } | 59 } |
| OLD | NEW |