| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |