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

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

Issue 183223003: Add StartSyncFlare to PasswordSyncableService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk Created 6 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_factory.cc » ('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/password_manager/mock_password_store_service.h" 5 #include "chrome/browser/password_manager/mock_password_store_service.h"
6 6
7 #include "components/password_manager/core/browser/mock_password_store.h" 7 #include "components/password_manager/core/browser/mock_password_store.h"
8 8
9 // static 9 // static
10 BrowserContextKeyedService* MockPasswordStoreService::Build( 10 BrowserContextKeyedService* MockPasswordStoreService::Build(
11 content::BrowserContext* /*profile*/) { 11 content::BrowserContext* /*profile*/) {
12 scoped_refptr<PasswordStore> store(new MockPasswordStore); 12 scoped_refptr<PasswordStore> store(new MockPasswordStore);
13 if (!store || !store->Init()) 13 if (!store || !store->Init(syncer::SyncableService::StartSyncFlare()))
14 return NULL; 14 return NULL;
15 return new MockPasswordStoreService(store); 15 return new MockPasswordStoreService(store);
16 } 16 }
17 17
18 MockPasswordStoreService::MockPasswordStoreService( 18 MockPasswordStoreService::MockPasswordStoreService(
19 scoped_refptr<PasswordStore> password_store) 19 scoped_refptr<PasswordStore> password_store)
20 : PasswordStoreService(password_store) {} 20 : PasswordStoreService(password_store) {}
21 21
22 MockPasswordStoreService::~MockPasswordStoreService() {} 22 MockPasswordStoreService::~MockPasswordStoreService() {}
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698