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

Side by Side Diff: chrome/browser/signin/easy_unlock_app_manager.cc

Issue 2937553002: Create Mojo Struct for user information used in login/lock screen. (Closed)
Patch Set: rebase Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/signin/easy_unlock_app_manager.h" 5 #include "chrome/browser/signin/easy_unlock_app_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool EasyUnlockAppManagerImpl::SendAuthAttemptEvent() { 181 bool EasyUnlockAppManagerImpl::SendAuthAttemptEvent() {
182 ExtensionService* extension_service = extension_system_->extension_service(); 182 ExtensionService* extension_service = extension_system_->extension_service();
183 if (!extension_service) 183 if (!extension_service)
184 return false; 184 return false;
185 185
186 // TODO(tbarzic): Restrict this to EasyUnlock app. 186 // TODO(tbarzic): Restrict this to EasyUnlock app.
187 extensions::ScreenlockPrivateEventRouter* screenlock_router = 187 extensions::ScreenlockPrivateEventRouter* screenlock_router =
188 extensions::ScreenlockPrivateEventRouter::GetFactoryInstance()->Get( 188 extensions::ScreenlockPrivateEventRouter::GetFactoryInstance()->Get(
189 extension_service->profile()); 189 extension_service->profile());
190 return screenlock_router->OnAuthAttempted( 190 return screenlock_router->OnAuthAttempted(
191 proximity_auth::ScreenlockBridge::LockHandler::USER_CLICK, std::string()); 191 proximity_auth::mojom::AuthType::USER_CLICK, std::string());
192 } 192 }
193 193
194 } // namespace 194 } // namespace
195 195
196 EasyUnlockAppManager::~EasyUnlockAppManager() { 196 EasyUnlockAppManager::~EasyUnlockAppManager() {
197 } 197 }
198 198
199 // static 199 // static
200 std::unique_ptr<EasyUnlockAppManager> EasyUnlockAppManager::Create( 200 std::unique_ptr<EasyUnlockAppManager> EasyUnlockAppManager::Create(
201 extensions::ExtensionSystem* extension_system, 201 extensions::ExtensionSystem* extension_system,
202 int manifest_id, 202 int manifest_id,
203 const base::FilePath& app_path) { 203 const base::FilePath& app_path) {
204 return std::unique_ptr<EasyUnlockAppManager>( 204 return std::unique_ptr<EasyUnlockAppManager>(
205 new EasyUnlockAppManagerImpl(extension_system, manifest_id, app_path)); 205 new EasyUnlockAppManagerImpl(extension_system, manifest_id, app_path));
206 } 206 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698