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