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

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

Issue 2566443005: cros: Replace WizardController string constants with OobeScreen values. (Closed)
Patch Set: Address comments Created 3 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
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/host_pairing_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h" 9 #include "chrome/browser/chromeos/login/oobe_screen.h"
10 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
11 #include "chromeos/chromeos_switches.h" 11 #include "chromeos/chromeos_switches.h"
12 #include "components/login/localized_values_builder.h" 12 #include "components/login/localized_values_builder.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 namespace { 16 namespace {
17 17
18 const char kJsScreenPath[] = "login.HostPairingScreen"; 18 const char kJsScreenPath[] = "login.HostPairingScreen";
19 19
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void HostPairingScreenHandler::OnContextChanged( 113 void HostPairingScreenHandler::OnContextChanged(
114 const base::DictionaryValue& diff) { 114 const base::DictionaryValue& diff) {
115 if (!js_context_ready_) { 115 if (!js_context_ready_) {
116 context_cache_.ApplyChanges(diff, NULL); 116 context_cache_.ApplyChanges(diff, NULL);
117 return; 117 return;
118 } 118 }
119 CallJS(kMethodContextChanged, diff); 119 CallJS(kMethodContextChanged, diff);
120 } 120 }
121 121
122 } // namespace chromeos 122 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698