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

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

Issue 2555783003: cros: Remove unused method (Closed)
Patch Set: Created 4 years 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"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 BaseScreenHandler::SetBaseScreen(model_); 64 BaseScreenHandler::SetBaseScreen(model_);
65 if (page_is_ready()) 65 if (page_is_ready())
66 Initialize(); 66 Initialize();
67 } 67 }
68 68
69 void HIDDetectionScreenHandler::Unbind() { 69 void HIDDetectionScreenHandler::Unbind() {
70 model_ = nullptr; 70 model_ = nullptr;
71 BaseScreenHandler::SetBaseScreen(nullptr); 71 BaseScreenHandler::SetBaseScreen(nullptr);
72 } 72 }
73 73
74 void HIDDetectionScreenHandler::PrepareToShow() {
75 }
76
77 void HIDDetectionScreenHandler::CheckIsScreenRequired( 74 void HIDDetectionScreenHandler::CheckIsScreenRequired(
78 const base::Callback<void(bool)>& on_check_done) { 75 const base::Callback<void(bool)>& on_check_done) {
79 model_->CheckIsScreenRequired(on_check_done); 76 model_->CheckIsScreenRequired(on_check_done);
80 } 77 }
81 78
82 void HIDDetectionScreenHandler::DeclareLocalizedValues( 79 void HIDDetectionScreenHandler::DeclareLocalizedValues(
83 ::login::LocalizedValuesBuilder* builder) { 80 ::login::LocalizedValuesBuilder* builder) {
84 builder->Add("hidDetectionContinue", IDS_HID_DETECTION_CONTINUE_BUTTON); 81 builder->Add("hidDetectionContinue", IDS_HID_DETECTION_CONTINUE_BUTTON);
85 builder->Add("hidDetectionInvitation", IDS_HID_DETECTION_INVITATION_TEXT); 82 builder->Add("hidDetectionInvitation", IDS_HID_DETECTION_INVITATION_TEXT);
86 builder->Add("hidDetectionPrerequisites", 83 builder->Add("hidDetectionPrerequisites",
(...skipping 30 matching lines...) Expand all
117 if (model_) 114 if (model_)
118 model_->OnContinueButtonClicked(); 115 model_->OnContinueButtonClicked();
119 } 116 }
120 117
121 // static 118 // static
122 void HIDDetectionScreenHandler::RegisterPrefs(PrefRegistrySimple* registry) { 119 void HIDDetectionScreenHandler::RegisterPrefs(PrefRegistrySimple* registry) {
123 registry->RegisterIntegerPref(prefs::kTimesHIDDialogShown, 0); 120 registry->RegisterIntegerPref(prefs::kTimesHIDDialogShown, 0);
124 } 121 }
125 122
126 } // namespace chromeos 123 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698