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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/ui/webui/chromeos/login/hid_detection_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/prefs/pref_service.h"
12 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
13 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/chromeos/login/screens/hid_detection_model.h" 13 #include "chrome/browser/chromeos/login/screens/hid_detection_model.h"
15 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 14 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
16 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
17 #include "chrome/grit/generated_resources.h" 16 #include "chrome/grit/generated_resources.h"
18 #include "chromeos/chromeos_switches.h" 17 #include "chromeos/chromeos_switches.h"
19 #include "components/login/localized_values_builder.h" 18 #include "components/login/localized_values_builder.h"
19 #include "components/prefs/pref_service.h"
20 20
21 namespace { 21 namespace {
22 22
23 const char kJsScreenPath[] = "login.HIDDetectionScreen"; 23 const char kJsScreenPath[] = "login.HIDDetectionScreen";
24 24
25 } // namespace 25 } // namespace
26 26
27 namespace chromeos { 27 namespace chromeos {
28 28
29 HIDDetectionScreenHandler::HIDDetectionScreenHandler( 29 HIDDetectionScreenHandler::HIDDetectionScreenHandler(
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 if (model_) 116 if (model_)
117 model_->OnContinueButtonClicked(); 117 model_->OnContinueButtonClicked();
118 } 118 }
119 119
120 // static 120 // static
121 void HIDDetectionScreenHandler::RegisterPrefs(PrefRegistrySimple* registry) { 121 void HIDDetectionScreenHandler::RegisterPrefs(PrefRegistrySimple* registry) {
122 registry->RegisterIntegerPref(prefs::kTimesHIDDialogShown, 0); 122 registry->RegisterIntegerPref(prefs::kTimesHIDDialogShown, 0);
123 } 123 }
124 124
125 } // namespace chromeos 125 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698