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

Side by Side Diff: components/password_manager/sync/browser/password_manager_setting_migrator_service.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h" 5 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "build/build_config.h"
10 #include "components/password_manager/core/browser/password_manager_settings_mig ration_experiment.h" 11 #include "components/password_manager/core/browser/password_manager_settings_mig ration_experiment.h"
11 #include "components/password_manager/core/common/password_manager_pref_names.h" 12 #include "components/password_manager/core/common/password_manager_pref_names.h"
12 #include "components/sync_driver/sync_service.h" 13 #include "components/sync_driver/sync_service.h"
13 #include "components/syncable_prefs/pref_service_syncable.h" 14 #include "components/syncable_prefs/pref_service_syncable.h"
14 15
15 namespace { 16 namespace {
16 17
17 bool GetBooleanUserOrDefaultPrefValue(PrefService* prefs, 18 bool GetBooleanUserOrDefaultPrefValue(PrefService* prefs,
18 const std::string& name) { 19 const std::string& name) {
19 bool result = false; 20 bool result = false;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 UpdatePreferencesValues(prefs, true); 225 UpdatePreferencesValues(prefs, true);
225 } else { 226 } else {
226 UpdatePreferencesValues(prefs, false); 227 UpdatePreferencesValues(prefs, false);
227 } 228 }
228 } 229 }
229 TrackInitialAndFinalValues(prefs, initial_new_pref_value_, 230 TrackInitialAndFinalValues(prefs, initial_new_pref_value_,
230 initial_legacy_pref_value_); 231 initial_legacy_pref_value_);
231 } 232 }
232 233
233 } // namespace password_manager 234 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698