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

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_service.cc

Issue 17167006: move sync_promo_ui to non-webui-specific directory (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed include guard on moved file Created 7 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/set_as_default_browser_ui.cc ('k') | chrome/browser/ui/webui/sync_promo/sync_promo_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698