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

Side by Side Diff: chrome/browser/chromeos/login/ui/login_display_host_impl.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/login_display_host_impl.h" 5 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/audio/sounds.h" 9 #include "ash/audio/sounds.h"
10 #include "ash/desktop_background/desktop_background_controller.h" 10 #include "ash/desktop_background/desktop_background_controller.h"
11 #include "ash/desktop_background/user_wallpaper_delegate.h" 11 #include "ash/desktop_background/user_wallpaper_delegate.h"
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "ash/shell_window_ids.h" 13 #include "ash/shell_window_ids.h"
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h"
17 #include "base/prefs/pref_service.h" 18 #include "base/prefs/pref_service.h"
18 #include "base/strings/string_split.h" 19 #include "base/strings/string_split.h"
19 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
20 #include "base/threading/thread_restrictions.h" 21 #include "base/threading/thread_restrictions.h"
21 #include "base/time/time.h" 22 #include "base/time/time.h"
22 #include "base/trace_event/trace_event.h" 23 #include "base/trace_event/trace_event.h"
23 #include "chrome/browser/browser_process.h" 24 #include "chrome/browser/browser_process.h"
24 #include "chrome/browser/browser_shutdown.h" 25 #include "chrome/browser/browser_shutdown.h"
25 #include "chrome/browser/chrome_notification_types.h" 26 #include "chrome/browser/chrome_notification_types.h"
26 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 27 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // |initialize_webui_hidden_|) by default. 128 // |initialize_webui_hidden_|) by default.
128 const bool kHiddenWebUIInitializationDefault = true; 129 const bool kHiddenWebUIInitializationDefault = true;
129 130
130 // Switch values that might be used to override WebUI init type. 131 // Switch values that might be used to override WebUI init type.
131 const char kWebUIInitParallel[] = "parallel"; 132 const char kWebUIInitParallel[] = "parallel";
132 const char kWebUIInitPostpone[] = "postpone"; 133 const char kWebUIInitPostpone[] = "postpone";
133 134
134 // The delay of triggering initialization of the device policy subsystem 135 // The delay of triggering initialization of the device policy subsystem
135 // after the login screen is initialized. This makes sure that device policy 136 // after the login screen is initialized. This makes sure that device policy
136 // network requests are made while the system is idle waiting for user input. 137 // network requests are made while the system is idle waiting for user input.
137 const int64 kPolicyServiceInitializationDelayMilliseconds = 100; 138 const int64_t kPolicyServiceInitializationDelayMilliseconds = 100;
138 139
139 // A class to observe an implicit animation and invokes the callback after the 140 // A class to observe an implicit animation and invokes the callback after the
140 // animation is completed. 141 // animation is completed.
141 class AnimationObserver : public ui::ImplicitAnimationObserver { 142 class AnimationObserver : public ui::ImplicitAnimationObserver {
142 public: 143 public:
143 explicit AnimationObserver(const base::Closure& callback) 144 explicit AnimationObserver(const base::Closure& callback)
144 : callback_(callback) {} 145 : callback_(callback) {}
145 ~AnimationObserver() override {} 146 ~AnimationObserver() override {}
146 147
147 private: 148 private:
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 1266
1266 locale_util::SwitchLanguageCallback callback( 1267 locale_util::SwitchLanguageCallback callback(
1267 base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass()))); 1268 base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass())));
1268 1269
1269 // Load locale keyboards here. Hardware layout would be automatically enabled. 1270 // Load locale keyboards here. Hardware layout would be automatically enabled.
1270 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */, 1271 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */,
1271 callback, ProfileManager::GetActiveUserProfile()); 1272 callback, ProfileManager::GetActiveUserProfile());
1272 } 1273 }
1273 1274
1274 } // namespace chromeos 1275 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_display_host_impl.h ('k') | chrome/browser/chromeos/login/ui/login_web_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698