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

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

Issue 2952463002: App list sync unit tests (Closed)
Patch Set: Add in dummy hooks for assistant settings launcher Created 3 years, 5 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 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 settings_private::PrefType::PREF_TYPE_BOOLEAN; 258 settings_private::PrefType::PREF_TYPE_BOOLEAN;
259 (*s_whitelist)[::prefs::kAccessibilityVirtualKeyboardEnabled] = 259 (*s_whitelist)[::prefs::kAccessibilityVirtualKeyboardEnabled] =
260 settings_private::PrefType::PREF_TYPE_BOOLEAN; 260 settings_private::PrefType::PREF_TYPE_BOOLEAN;
261 (*s_whitelist)[::prefs::kAccessibilityMonoAudioEnabled] = 261 (*s_whitelist)[::prefs::kAccessibilityMonoAudioEnabled] =
262 settings_private::PrefType::PREF_TYPE_BOOLEAN; 262 settings_private::PrefType::PREF_TYPE_BOOLEAN;
263 263
264 // Android Apps. 264 // Android Apps.
265 (*s_whitelist)[::prefs::kArcEnabled] = 265 (*s_whitelist)[::prefs::kArcEnabled] =
266 settings_private::PrefType::PREF_TYPE_BOOLEAN; 266 settings_private::PrefType::PREF_TYPE_BOOLEAN;
267 267
268 // Google Assistant.
269 (*s_whitelist)[::prefs::kVoiceInteractionEnabled] =
270 settings_private::PrefType::PREF_TYPE_BOOLEAN;
271 (*s_whitelist)[::prefs::kVoiceInteractionContextEnabled] =
272 settings_private::PrefType::PREF_TYPE_BOOLEAN;
273
268 // Misc. 274 // Misc.
269 (*s_whitelist)[::prefs::kUse24HourClock] = 275 (*s_whitelist)[::prefs::kUse24HourClock] =
270 settings_private::PrefType::PREF_TYPE_BOOLEAN; 276 settings_private::PrefType::PREF_TYPE_BOOLEAN;
271 (*s_whitelist)[::prefs::kLanguagePreferredLanguages] = 277 (*s_whitelist)[::prefs::kLanguagePreferredLanguages] =
272 settings_private::PrefType::PREF_TYPE_STRING; 278 settings_private::PrefType::PREF_TYPE_STRING;
273 (*s_whitelist)[::prefs::kTapDraggingEnabled] = 279 (*s_whitelist)[::prefs::kTapDraggingEnabled] =
274 settings_private::PrefType::PREF_TYPE_BOOLEAN; 280 settings_private::PrefType::PREF_TYPE_BOOLEAN;
275 (*s_whitelist)[chromeos::kStatsReportingPref] = 281 (*s_whitelist)[chromeos::kStatsReportingPref] =
276 settings_private::PrefType::PREF_TYPE_BOOLEAN; 282 settings_private::PrefType::PREF_TYPE_BOOLEAN;
277 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] = 283 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] =
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) 795 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_)
790 ->GetExtensionControllingPref(pref_object.key); 796 ->GetExtensionControllingPref(pref_object.key);
791 if (extension_id.empty()) 797 if (extension_id.empty())
792 return nullptr; 798 return nullptr;
793 799
794 return ExtensionRegistry::Get(profile_)->GetExtensionById( 800 return ExtensionRegistry::Get(profile_)->GetExtensionById(
795 extension_id, ExtensionRegistry::ENABLED); 801 extension_id, ExtensionRegistry::ENABLED);
796 } 802 }
797 803
798 } // namespace extensions 804 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/google_assistant_page/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698