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

Side by Side Diff: ios/chrome/browser/prefs/ios_chrome_pref_model_associator_client.cc

Issue 1302303002: Remove year+ old migration support of "session.urls_to_restore_on_startup". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable_unittest
Patch Set: Address comments Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 "ios/chrome/browser/prefs/ios_chrome_pref_model_associator_client.h" 5 #include "ios/chrome/browser/prefs/ios_chrome_pref_model_associator_client.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "components/content_settings/core/browser/website_settings_info.h" 8 #include "components/content_settings/core/browser/website_settings_info.h"
9 #include "components/content_settings/core/browser/website_settings_registry.h" 9 #include "components/content_settings/core/browser/website_settings_registry.h"
10 10
(...skipping 15 matching lines...) Expand all
26 bool IOSChromePrefModelAssociatorClient::IsMergeableDictionaryPreference( 26 bool IOSChromePrefModelAssociatorClient::IsMergeableDictionaryPreference(
27 const std::string& pref_name) const { 27 const std::string& pref_name) const {
28 const content_settings::WebsiteSettingsRegistry& registry = 28 const content_settings::WebsiteSettingsRegistry& registry =
29 *content_settings::WebsiteSettingsRegistry::GetInstance(); 29 *content_settings::WebsiteSettingsRegistry::GetInstance();
30 for (const content_settings::WebsiteSettingsInfo* info : registry) { 30 for (const content_settings::WebsiteSettingsInfo* info : registry) {
31 if (info->pref_name() == pref_name) 31 if (info->pref_name() == pref_name)
32 return true; 32 return true;
33 } 33 }
34 return false; 34 return false;
35 } 35 }
36
37 bool IOSChromePrefModelAssociatorClient::IsMigratedPreference(
38 const std::string& new_pref_name,
39 std::string* old_pref_name) const {
40 return false;
41 }
42
43 bool IOSChromePrefModelAssociatorClient::IsOldMigratedPreference(
44 const std::string& old_pref_name,
45 std::string* new_pref_name) const {
46 return false;
47 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/prefs/ios_chrome_pref_model_associator_client.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698