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

Side by Side Diff: chrome/browser/ui/login/login_prompt_ui.cc

Issue 9355059: Renaming virtual setters/getters in UserManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: year Created 8 years, 9 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 | Annotate | Revision Log
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/login/login_prompt.h" 5 #include "chrome/browser/ui/login/login_prompt.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 : login_handler_(login_handler), 88 : login_handler_(login_handler),
89 explanation_(UTF16ToUTF8(explanation)), 89 explanation_(UTF16ToUTF8(explanation)),
90 closed_(false), 90 closed_(false),
91 has_autofill_(false), 91 has_autofill_(false),
92 ready_for_autofill_(false) { 92 ready_for_autofill_(false) {
93 } 93 }
94 94
95 // HtmlDialogUIDelegate methods: 95 // HtmlDialogUIDelegate methods:
96 virtual ui::ModalType GetDialogModalType() const OVERRIDE { 96 virtual ui::ModalType GetDialogModalType() const OVERRIDE {
97 #if defined(OS_CHROMEOS) 97 #if defined(OS_CHROMEOS)
98 return chromeos::UserManager::Get()->user_is_logged_in() ? 98 return chromeos::UserManager::Get()->IsUserLoggedIn() ?
99 ui::MODAL_TYPE_WINDOW : 99 ui::MODAL_TYPE_WINDOW :
100 ui::MODAL_TYPE_SYSTEM; 100 ui::MODAL_TYPE_SYSTEM;
101 #else 101 #else
102 return ui::MODAL_TYPE_WINDOW; 102 return ui::MODAL_TYPE_WINDOW;
103 #endif 103 #endif
104 } 104 }
105 105
106 virtual string16 GetDialogTitle() const OVERRIDE { 106 virtual string16 GetDialogTitle() const OVERRIDE {
107 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE); 107 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE);
108 } 108 }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 SetDialog(dialog); 269 SetDialog(dialog);
270 270
271 NotifyAuthNeeded(); 271 NotifyAuthNeeded();
272 } 272 }
273 273
274 // static 274 // static
275 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 275 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
276 net::URLRequest* request) { 276 net::URLRequest* request) {
277 return new LoginHandlerHtml(auth_info, request); 277 return new LoginHandlerHtml(auth_info, request);
278 } 278 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/views/ash/screenshot_taker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698