OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "chrome/browser/password_manager/mock_password_store.h" |
| 6 #include "content/public/browser/browser_thread.h" |
6 | 7 |
7 MockPasswordStore::MockPasswordStore() {} | 8 using content::BrowserThread; |
| 9 |
| 10 MockPasswordStore::MockPasswordStore() |
| 11 : PasswordStore( |
| 12 base::MessageLoopProxy::current(), |
| 13 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)) { |
| 14 } |
8 | 15 |
9 // static | 16 // static |
10 scoped_refptr<RefcountedBrowserContextKeyedService> MockPasswordStore::Build( | 17 scoped_refptr<RefcountedBrowserContextKeyedService> MockPasswordStore::Build( |
11 content::BrowserContext* profile) { | 18 content::BrowserContext* profile) { |
12 return new MockPasswordStore; | 19 return new MockPasswordStore; |
13 } | 20 } |
14 | 21 |
15 void MockPasswordStore::ShutdownOnUIThread() {} | 22 void MockPasswordStore::ShutdownOnUIThread() {} |
16 | 23 |
17 MockPasswordStore::~MockPasswordStore() {} | 24 MockPasswordStore::~MockPasswordStore() {} |
OLD | NEW |