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

Side by Side Diff: chrome/browser/chromeos/login/login_screen.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/chromeos/login/login_screen.h" 5 #include "chrome/browser/chromeos/login/login_screen.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h"
9 #include "base/callback.h" 8 #include "base/callback.h"
10 #include "base/command_line.h" 9 #include "base/command_line.h"
11 #include "base/logging.h" 10 #include "base/logging.h"
12 #include "base/process_util.h" 11 #include "base/process_util.h"
13 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/browser_thread.h" 14 #include "chrome/browser/browser_thread.h"
16 #include "chrome/browser/chromeos/boot_times_loader.h" 15 #include "chrome/browser/chromeos/boot_times_loader.h"
17 #include "chrome/browser/chromeos/cros/cros_library.h" 16 #include "chrome/browser/chromeos/cros/cros_library.h"
18 #include "chrome/browser/chromeos/cros/network_library.h" 17 #include "chrome/browser/chromeos/cros/network_library.h"
19 #include "chrome/browser/chromeos/login/authentication_notification_details.h" 18 #include "chrome/browser/chromeos/login/authentication_notification_details.h"
20 #include "chrome/browser/chromeos/login/helper.h" 19 #include "chrome/browser/chromeos/login/helper.h"
21 #include "chrome/browser/chromeos/login/login_utils.h" 20 #include "chrome/browser/chromeos/login/login_utils.h"
22 #include "chrome/browser/chromeos/login/message_bubble.h" 21 #include "chrome/browser/chromeos/login/message_bubble.h"
23 #include "chrome/browser/chromeos/login/screen_observer.h" 22 #include "chrome/browser/chromeos/login/screen_observer.h"
24 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/browser/profiles/profile_manager.h" 24 #include "chrome/browser/profiles/profile_manager.h"
26 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
27 #include "grit/theme_resources.h" 26 #include "grit/theme_resources.h"
27 #include "ui/base/resource/resource_bundle.h"
28 28
29 namespace chromeos { 29 namespace chromeos {
30 30
31 LoginScreen::LoginScreen(WizardScreenDelegate* delegate) 31 LoginScreen::LoginScreen(WizardScreenDelegate* delegate)
32 : ViewScreen<NewUserView>(delegate, 32 : ViewScreen<NewUserView>(delegate,
33 kNewUserPodFullWidth, kNewUserPodFullHeight), 33 kNewUserPodFullWidth, kNewUserPodFullHeight),
34 bubble_(NULL), 34 bubble_(NULL),
35 authenticator_(NULL) { 35 authenticator_(NULL) {
36 if (CrosLibrary::Get()->EnsureLoaded()) { 36 if (CrosLibrary::Get()->EnsureLoaded()) {
37 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); 37 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 view()->GetWidget(), 133 view()->GetWidget(),
134 view()->GetPasswordBounds(), 134 view()->GetPasswordBounds(),
135 BubbleBorder::LEFT_TOP, 135 BubbleBorder::LEFT_TOP,
136 ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING), 136 ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING),
137 error_text, 137 error_text,
138 UTF16ToWide(l10n_util::GetStringUTF16(IDS_CANT_ACCESS_ACCOUNT_BUTTON)), 138 UTF16ToWide(l10n_util::GetStringUTF16(IDS_CANT_ACCESS_ACCOUNT_BUTTON)),
139 this); 139 this);
140 } 140 }
141 141
142 } // namespace chromeos 142 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.cc ('k') | chrome/browser/chromeos/login/message_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698