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

Side by Side Diff: chrome/browser/password_manager/test_password_store_service.cc

Issue 644053003: [Password Manager] Add UMA stats for custom passphrase users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 6 years, 2 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/password_manager/test_password_store_service.h" 5 #include "chrome/browser/password_manager/test_password_store_service.h"
6 6
7 #include "components/password_manager/core/browser/test_password_store.h" 7 #include "components/password_manager/core/browser/test_password_store.h"
8 8
9 // static 9 // static
10 KeyedService* TestPasswordStoreService::Build( 10 KeyedService* TestPasswordStoreService::Build(
11 content::BrowserContext* /*profile*/) { 11 content::BrowserContext* /*profile*/) {
12 scoped_refptr<password_manager::PasswordStore> store( 12 scoped_refptr<password_manager::PasswordStore> store(
13 new password_manager::TestPasswordStore); 13 new password_manager::TestPasswordStore);
14 if (!store.get() || 14 if (!store.get() || !store->Init(syncer::SyncableService::StartSyncFlare()))
15 !store->Init(syncer::SyncableService::StartSyncFlare(), ""))
16 return NULL; 15 return NULL;
17 return new TestPasswordStoreService(store); 16 return new TestPasswordStoreService(store);
18 } 17 }
19 18
20 TestPasswordStoreService::TestPasswordStoreService( 19 TestPasswordStoreService::TestPasswordStoreService(
21 scoped_refptr<password_manager::PasswordStore> password_store) 20 scoped_refptr<password_manager::PasswordStore> password_store)
22 : PasswordStoreService(password_store) {} 21 : PasswordStoreService(password_store) {}
23 22
24 TestPasswordStoreService::~TestPasswordStoreService() {} 23 TestPasswordStoreService::~TestPasswordStoreService() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698