| 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/signin/signin_promo.h" | 8 #include "chrome/browser/signin/signin_promo.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_navigator.h" | 10 #include "chrome/browser/ui/browser_navigator.h" |
| 11 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" |
| 12 #include "chrome/browser/ui/chrome_pages.h" | 12 #include "chrome/browser/ui/chrome_pages.h" |
| 13 #include "chrome/browser/ui/host_desktop.h" | 13 #include "chrome/browser/ui/host_desktop.h" |
| 14 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" | 14 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" |
| 15 #include "chrome/browser/ui/sync/inline_login_dialog.h" | 15 #include "chrome/browser/ui/sync/inline_login_dialog.h" |
| 16 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 16 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
| 17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 #include "components/signin/core/browser/signin_header_helper.h" | 18 #include "components/signin/core/browser/signin_header_helper.h" |
| 19 #include "components/signin/core/common/profile_management_switches.h" | 19 #include "components/signin/core/common/profile_management_switches.h" |
| 20 #include "ui/gfx/host_desktop_type.h" |
| 20 | 21 |
| 21 #if defined(OS_CHROMEOS) | 22 #if defined(OS_CHROMEOS) |
| 22 #include "chrome/browser/app_mode/app_mode_utils.h" | 23 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 23 #endif | 24 #endif |
| 24 | 25 |
| 25 LoginUIService::LoginUIService(Profile* profile) | 26 LoginUIService::LoginUIService(Profile* profile) |
| 26 : ui_(NULL), profile_(profile) { | 27 : ui_(NULL), profile_(profile) { |
| 27 } | 28 } |
| 28 | 29 |
| 29 LoginUIService::~LoginUIService() {} | 30 LoginUIService::~LoginUIService() {} |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // TODO(rogerta): Separate out the bubble API so we don't have to pass | 92 // TODO(rogerta): Separate out the bubble API so we don't have to pass |
| 92 // ignored |email| and |callback| params. | 93 // ignored |email| and |callback| params. |
| 93 BrowserWindow::StartSyncCallback()); | 94 BrowserWindow::StartSyncCallback()); |
| 94 #endif | 95 #endif |
| 95 } | 96 } |
| 96 } | 97 } |
| 97 | 98 |
| 98 const base::string16& LoginUIService::GetLastLoginResult() { | 99 const base::string16& LoginUIService::GetLastLoginResult() { |
| 99 return last_login_result_; | 100 return last_login_result_; |
| 100 } | 101 } |
| OLD | NEW |