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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix syncing of platform specific prefs Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const PasswordForms& forms = 148 const PasswordForms& forms =
149 static_cast<const WDResult<PasswordForms>*>(result)->GetValue(); 149 static_cast<const WDResult<PasswordForms>*>(result)->GetValue();
150 for (PasswordForms::const_iterator it = forms.begin(); 150 for (PasswordForms::const_iterator it = forms.begin();
151 it != forms.end(); ++it) { 151 it != forms.end(); ++it) {
152 AddLogin(**it); 152 AddLogin(**it);
153 web_data_service_->RemoveLogin(**it); 153 web_data_service_->RemoveLogin(**it);
154 delete *it; 154 delete *it;
155 } 155 }
156 if (handles_.empty()) { 156 if (handles_.empty()) {
157 profile_->GetPrefs()->RegisterBooleanPref(prefs::kLoginDatabaseMigrated, 157 profile_->GetPrefs()->RegisterBooleanPref(prefs::kLoginDatabaseMigrated,
158 true); 158 true,
159 false /* don't sync pref */);
159 } 160 }
160 } 161 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698