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

Side by Side Diff: chrome/browser/chromeos/login/screens/host_pairing_screen.cc

Issue 491943004: Update the pairing API to include configuration and enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 6 years, 3 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 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/screens/host_pairing_screen.h" 5 #include "chrome/browser/chromeos/login/screens/host_pairing_screen.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/chromeos/login/wizard_controller.h" 8 #include "chrome/browser/chromeos/login/wizard_controller.h"
9 #include "chromeos/chromeos_switches.h" 9 #include "chromeos/chromeos_switches.h"
10 #include "components/pairing/fake_host_pairing_controller.h" 10 #include "components/pairing/fake_host_pairing_controller.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 NOTREACHED(); 107 NOTREACHED();
108 break; 108 break;
109 } 109 }
110 } 110 }
111 current_stage_ = new_stage; 111 current_stage_ = new_stage;
112 context_.SetString(kContextKeyDeviceName, controller_->GetDeviceName()); 112 context_.SetString(kContextKeyDeviceName, controller_->GetDeviceName());
113 context_.SetString(kContextKeyPage, desired_page); 113 context_.SetString(kContextKeyPage, desired_page);
114 CommitContextChanges(); 114 CommitContextChanges();
115 } 115 }
116 116
117 void HostPairingScreen::UpdateAdvanced(const UpdateProgress& progress) { 117 void HostPairingScreen::ConfigureHost(bool accepted_eula,
118 context_.SetDouble(kContextKeyUpdateProgress, progress.progress); 118 const std::string& lang,
119 CommitContextChanges(); 119 const std::string& timezone,
120 bool send_reports,
121 const std::string& keyboard_layout) {
122 // TODO(zork): Get configuration from UI and send to Host.
123 // (http://crbug.com/405744)
124 }
125
126 void HostPairingScreen::EnrollHost(const std::string& auth_token) {
127 // TODO(zork,achuith): Enroll device, send error on error.
128 // (http://crbug.com/374990)
120 } 129 }
121 130
122 void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) { 131 void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) {
123 if (actor_ == actor) 132 if (actor_ == actor)
124 actor_ = NULL; 133 actor_ = NULL;
125 } 134 }
126 135
127 } // namespace chromeos 136 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698