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

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

Issue 555003002: Add method for telling the Pairing API that enrollment is complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | components/pairing/bluetooth_host_pairing_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/pairing/bluetooth_host_pairing_controller.h" 9 #include "components/pairing/bluetooth_host_pairing_controller.h"
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const std::string& timezone, 115 const std::string& timezone,
116 bool send_reports, 116 bool send_reports,
117 const std::string& keyboard_layout) { 117 const std::string& keyboard_layout) {
118 // TODO(zork): Get configuration from UI and send to Host. 118 // TODO(zork): Get configuration from UI and send to Host.
119 // (http://crbug.com/405744) 119 // (http://crbug.com/405744)
120 } 120 }
121 121
122 void HostPairingScreen::EnrollHost(const std::string& auth_token) { 122 void HostPairingScreen::EnrollHost(const std::string& auth_token) {
123 // TODO(zork,achuith): Enroll device, send error on error. 123 // TODO(zork,achuith): Enroll device, send error on error.
124 // (http://crbug.com/374990) 124 // (http://crbug.com/374990)
125 controller_->SetEnrollmentComplete(true);
125 } 126 }
126 127
127 void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) { 128 void HostPairingScreen::OnActorDestroyed(HostPairingScreenActor* actor) {
128 if (actor_ == actor) 129 if (actor_ == actor)
129 actor_ = NULL; 130 actor_ = NULL;
130 } 131 }
131 132
132 } // namespace chromeos 133 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | components/pairing/bluetooth_host_pairing_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698