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

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

Issue 67923002: Fixes for -Wunused-function on Linux, Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for realz Created 7 years, 1 month 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 | Annotate | Revision Log
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/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/signin/signin_manager.h" 9 #include "chrome/browser/signin/signin_manager.h"
10 #include "chrome/browser/signin/signin_manager_factory.h" 10 #include "chrome/browser/signin/signin_manager_factory.h"
11 #include "chrome/browser/signin/signin_promo.h" 11 #include "chrome/browser/signin/signin_promo.h"
12 #include "chrome/browser/ui/browser_navigator.h" 12 #include "chrome/browser/ui/browser_navigator.h"
13 #include "chrome/browser/ui/chrome_pages.h" 13 #include "chrome/browser/ui/chrome_pages.h"
14 #include "chrome/browser/ui/extensions/application_launch.h" 14 #include "chrome/browser/ui/extensions/application_launch.h"
15 #include "chrome/browser/ui/host_desktop.h" 15 #include "chrome/browser/ui/host_desktop.h"
16 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 16 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
17 #include "chrome/common/extensions/extension_constants.h" 17 #include "chrome/common/extensions/extension_constants.h"
18 #include "content/public/common/page_transition_types.h" 18 #include "content/public/common/page_transition_types.h"
19 #include "grit/chromium_strings.h" 19 #include "grit/chromium_strings.h"
20 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
21 #include "ui/base/resource/resource_bundle.h" 21 #include "ui/base/resource/resource_bundle.h"
22 22
23 namespace { 23 namespace {
24 24
25 #if !defined(OS_CHROMEOS)
25 SigninManagerBase* GetSigninManager(Profile* profile) { 26 SigninManagerBase* GetSigninManager(Profile* profile) {
26 return SigninManagerFactory::GetForProfile(profile); 27 return SigninManagerFactory::GetForProfile(profile);
27 } 28 }
29 #endif // !defined(OS_CHROMEOS)
28 30
29 } // namespace 31 } // namespace
30 32
31 ChromeSigninDelegate::ChromeSigninDelegate() {} 33 ChromeSigninDelegate::ChromeSigninDelegate() {}
32 34
33 ChromeSigninDelegate::~ChromeSigninDelegate() {} 35 ChromeSigninDelegate::~ChromeSigninDelegate() {}
34 36
35 void ChromeSigninDelegate::SetProfile(Profile* profile) { 37 void ChromeSigninDelegate::SetProfile(Profile* profile) {
36 profile_ = profile; 38 profile_ = profile;
37 } 39 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 94
93 string16 ChromeSigninDelegate::GetLearnMoreLinkText() { 95 string16 ChromeSigninDelegate::GetLearnMoreLinkText() {
94 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 96 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
95 return rb.GetLocalizedString(IDS_APP_LIST_SIGNIN_LEARN_MORE_TEXT); 97 return rb.GetLocalizedString(IDS_APP_LIST_SIGNIN_LEARN_MORE_TEXT);
96 } 98 }
97 99
98 string16 ChromeSigninDelegate::GetSettingsLinkText() { 100 string16 ChromeSigninDelegate::GetSettingsLinkText() {
99 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 101 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
100 return rb.GetLocalizedString(IDS_APP_LIST_SIGNIN_SETTINGS_TEXT); 102 return rb.GetLocalizedString(IDS_APP_LIST_SIGNIN_SETTINGS_TEXT);
101 } 103 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698