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

Side by Side Diff: chrome/browser/ui/app_list/chrome_signin_delegate.cc

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework Created 7 years, 3 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 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/app_list/chrome_signin_delegate.h" 5 #include "chrome/browser/ui/app_list/chrome_signin_delegate.h"
6 6
7 #include "chrome/browser/browser_process.h"
7 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/profiles/profile_manager.h"
9 #include "chrome/browser/signin/signin_manager.h" 11 #include "chrome/browser/signin/signin_manager.h"
10 #include "chrome/browser/signin/signin_manager_factory.h" 12 #include "chrome/browser/signin/signin_manager_factory.h"
11 #include "chrome/browser/signin/signin_promo.h" 13 #include "chrome/browser/signin/signin_promo.h"
12 #include "chrome/browser/ui/browser_finder.h" 14 #include "chrome/browser/ui/browser_finder.h"
13 #include "chrome/browser/ui/browser_navigator.h" 15 #include "chrome/browser/ui/browser_navigator.h"
14 #include "chrome/browser/ui/chrome_pages.h" 16 #include "chrome/browser/ui/chrome_pages.h"
15 #include "chrome/browser/ui/extensions/application_launch.h" 17 #include "chrome/browser/ui/extensions/application_launch.h"
16 #include "chrome/browser/ui/host_desktop.h" 18 #include "chrome/browser/ui/host_desktop.h"
17 #include "chrome/common/extensions/extension_constants.h" 19 #include "chrome/common/extensions/extension_constants.h"
18 #include "content/public/common/page_transition_types.h" 20 #include "content/public/common/page_transition_types.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 string16 ChromeSigninDelegate::GetLearnMoreLinkText() { 92 string16 ChromeSigninDelegate::GetLearnMoreLinkText() {
91 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 93 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
92 return rb.GetLocalizedString(IDS_APP_LIST_SIGNIN_LEARN_MORE_TEXT); 94 return rb.GetLocalizedString(IDS_APP_LIST_SIGNIN_LEARN_MORE_TEXT);
93 } 95 }
94 96
95 string16 ChromeSigninDelegate::GetSettingsLinkText() { 97 string16 ChromeSigninDelegate::GetSettingsLinkText() {
96 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 98 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
97 return rb.GetLocalizedString(IDS_APP_LIST_SIGNIN_SETTINGS_TEXT); 99 return rb.GetLocalizedString(IDS_APP_LIST_SIGNIN_SETTINGS_TEXT);
98 } 100 }
99 101
102 void ChromeSigninDelegate::SetProfile(Profile* profile) {
tapted 2013/09/11 05:50:26 nit: keep definitions ordered the same as declarat
calamity 2013/09/13 18:02:35 Done.
103 profile_ = profile;
104 }
105
100 ChromeSigninDelegate::~ChromeSigninDelegate() {} 106 ChromeSigninDelegate::~ChromeSigninDelegate() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698