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

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

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_default.h" 5 #include "chrome/browser/password_manager/password_store_default.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "chrome/browser/chrome_thread.h" 9 #include "chrome/browser/chrome_thread.h"
10 #include "chrome/browser/password_manager/password_store_change.h" 10 #include "chrome/browser/password_manager/password_store_change.h"
11 #include "chrome/browser/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/webdata/web_data_service.h" 12 #include "chrome/browser/webdata/web_data_service.h"
13 #include "chrome/common/chrome_constants.h" 13 #include "chrome/common/chrome_constants.h"
14 #include "chrome/common/notification_service.h" 14 #include "chrome/common/notification_service.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 16
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/stl_util-inl.h" 18 #include "base/stl_util-inl.h"
19 19
20 using webkit_glue::PasswordForm; 20 using webkit_glue::PasswordForm;
21 21
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 it != forms.end(); ++it) { 154 it != forms.end(); ++it) {
155 AddLogin(**it); 155 AddLogin(**it);
156 web_data_service_->RemoveLogin(**it); 156 web_data_service_->RemoveLogin(**it);
157 delete *it; 157 delete *it;
158 } 158 }
159 if (handles_.empty()) { 159 if (handles_.empty()) {
160 profile_->GetPrefs()->RegisterBooleanPref(prefs::kLoginDatabaseMigrated, 160 profile_->GetPrefs()->RegisterBooleanPref(prefs::kLoginDatabaseMigrated,
161 true); 161 true);
162 } 162 }
163 } 163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698