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

Side by Side Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 2727813002: Options/MD Settings: use new prefs to drive import data dialog (Closed)
Patch Set: pastarmovj@ review Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/extensions/api/settings_private/prefs_util.h" 5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "chrome/browser/extensions/settings_api_helpers.h" 10 #include "chrome/browser/extensions/settings_api_helpers.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 (*s_whitelist)[::prefs::kAcceptLanguages] = 334 (*s_whitelist)[::prefs::kAcceptLanguages] =
335 settings_private::PrefType::PREF_TYPE_STRING; 335 settings_private::PrefType::PREF_TYPE_STRING;
336 336
337 // System settings. 337 // System settings.
338 (*s_whitelist)[::prefs::kBackgroundModeEnabled] = 338 (*s_whitelist)[::prefs::kBackgroundModeEnabled] =
339 settings_private::PrefType::PREF_TYPE_BOOLEAN; 339 settings_private::PrefType::PREF_TYPE_BOOLEAN;
340 (*s_whitelist)[::prefs::kHardwareAccelerationModeEnabled] = 340 (*s_whitelist)[::prefs::kHardwareAccelerationModeEnabled] =
341 settings_private::PrefType::PREF_TYPE_BOOLEAN; 341 settings_private::PrefType::PREF_TYPE_BOOLEAN;
342 342
343 // Import data 343 // Import data
344 (*s_whitelist)[::prefs::kImportAutofillFormData] = 344 (*s_whitelist)[::prefs::kImportDialogAutofillFormData] =
345 settings_private::PrefType::PREF_TYPE_BOOLEAN; 345 settings_private::PrefType::PREF_TYPE_BOOLEAN;
346 (*s_whitelist)[::prefs::kImportBookmarks] = 346 (*s_whitelist)[::prefs::kImportDialogBookmarks] =
347 settings_private::PrefType::PREF_TYPE_BOOLEAN; 347 settings_private::PrefType::PREF_TYPE_BOOLEAN;
348 (*s_whitelist)[::prefs::kImportHistory] = 348 (*s_whitelist)[::prefs::kImportDialogHistory] =
349 settings_private::PrefType::PREF_TYPE_BOOLEAN; 349 settings_private::PrefType::PREF_TYPE_BOOLEAN;
350 (*s_whitelist)[::prefs::kImportSavedPasswords] = 350 (*s_whitelist)[::prefs::kImportDialogSavedPasswords] =
351 settings_private::PrefType::PREF_TYPE_BOOLEAN; 351 settings_private::PrefType::PREF_TYPE_BOOLEAN;
352 (*s_whitelist)[::prefs::kImportSearchEngine] = 352 (*s_whitelist)[::prefs::kImportDialogSearchEngine] =
353 settings_private::PrefType::PREF_TYPE_BOOLEAN; 353 settings_private::PrefType::PREF_TYPE_BOOLEAN;
354 #endif 354 #endif
355 355
356 // Search settings. 356 // Search settings.
357 (*s_whitelist)[::prefs::kHotwordSearchEnabled] = 357 (*s_whitelist)[::prefs::kHotwordSearchEnabled] =
358 settings_private::PrefType::PREF_TYPE_BOOLEAN; 358 settings_private::PrefType::PREF_TYPE_BOOLEAN;
359 (*s_whitelist)[::prefs::kHotwordAlwaysOnSearchEnabled] = 359 (*s_whitelist)[::prefs::kHotwordAlwaysOnSearchEnabled] =
360 settings_private::PrefType::PREF_TYPE_BOOLEAN; 360 settings_private::PrefType::PREF_TYPE_BOOLEAN;
361 361
362 // Proxy settings. 362 // Proxy settings.
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) 750 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_)
751 ->GetExtensionControllingPref(pref_object.key); 751 ->GetExtensionControllingPref(pref_object.key);
752 if (extension_id.empty()) 752 if (extension_id.empty())
753 return nullptr; 753 return nullptr;
754 754
755 return ExtensionRegistry::Get(profile_)->GetExtensionById( 755 return ExtensionRegistry::Get(profile_)->GetExtensionById(
756 extension_id, ExtensionRegistry::ENABLED); 756 extension_id, ExtensionRegistry::ENABLED);
757 } 757 }
758 758
759 } // namespace extensions 759 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698