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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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
OLDNEW
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/password_store_x.h" 5 #include "chrome/browser/password_manager/password_store_x.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/prefs/pref_service.h"
13 #include "base/stl_util.h" 14 #include "base/stl_util.h"
14 #include "chrome/browser/password_manager/password_store_change.h" 15 #include "chrome/browser/password_manager/password_store_change.h"
15 #include "chrome/browser/prefs/pref_registry_syncable.h" 16 #include "chrome/browser/prefs/pref_registry_syncable.h"
16 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
21 21
22 using content::BrowserThread; 22 using content::BrowserThread;
23 using std::vector; 23 using std::vector;
24 using content::PasswordForm; 24 using content::PasswordForm;
25 25
26 PasswordStoreX::PasswordStoreX(LoginDatabase* login_db, 26 PasswordStoreX::PasswordStoreX(LoginDatabase* login_db,
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } // anonymous namespace 298 } // anonymous namespace
299 299
300 // static 300 // static
301 void PasswordStoreX::SetPasswordsUseLocalProfileId(PrefService* prefs) { 301 void PasswordStoreX::SetPasswordsUseLocalProfileId(PrefService* prefs) {
302 // This method should work on any thread, but we expect the DB thread. 302 // This method should work on any thread, but we expect the DB thread.
303 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 303 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
304 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 304 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
305 base::Bind(&UISetPasswordsUseLocalProfileId, prefs)); 305 base::Bind(&UISetPasswordsUseLocalProfileId, prefs));
306 } 306 }
307 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) 307 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698