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

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

Issue 271793003: components: Extract pref_registry component out of user_prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/prefs/pref_service.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "chrome/browser/chrome_notification_types.h" 15 #include "chrome/browser/chrome_notification_types.h"
16 #include "components/password_manager/core/browser/password_store_change.h" 16 #include "components/password_manager/core/browser/password_store_change.h"
17 #include "components/password_manager/core/common/password_manager_pref_names.h" 17 #include "components/password_manager/core/common/password_manager_pref_names.h"
18 #include "components/user_prefs/pref_registry_syncable.h" 18 #include "components/pref_registry/pref_registry_syncable.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 autofill::PasswordForm; 22 using autofill::PasswordForm;
23 using content::BrowserThread; 23 using content::BrowserThread;
24 using password_manager::PasswordStoreChange; 24 using password_manager::PasswordStoreChange;
25 using password_manager::PasswordStoreChangeList; 25 using password_manager::PasswordStoreChangeList;
26 using password_manager::PasswordStoreDefault; 26 using password_manager::PasswordStoreDefault;
27 using std::vector; 27 using std::vector;
28 28
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // it before deleting the file just in case there is some problem deleting 256 // it before deleting the file just in case there is some problem deleting
257 // the file (e.g. directory is not writable, but file is), which would 257 // the file (e.g. directory is not writable, but file is), which would
258 // otherwise cause passwords to re-migrate next (or maybe every) time. 258 // otherwise cause passwords to re-migrate next (or maybe every) time.
259 DeleteAndRecreateDatabaseFile(); 259 DeleteAndRecreateDatabaseFile();
260 } 260 }
261 } 261 }
262 ssize_t result = ok ? forms.size() : -1; 262 ssize_t result = ok ? forms.size() : -1;
263 STLDeleteElements(&forms); 263 STLDeleteElements(&forms);
264 return result; 264 return result;
265 } 265 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_factory.cc ('k') | chrome/browser/pepper_flash_settings_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698