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

Side by Side Diff: chrome/common/pref_names.cc

Issue 2552203007: Public Sessions - prompt the user for pageCapture requests (Closed)
Patch Set: Nits Created 3 years, 11 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 | « chrome/common/pref_names.h ('k') | chrome/test/data/extensions/api_test/page_capture/test.js » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/common/features.h" 9 #include "chrome/common/features.h"
10 #include "chrome/common/pref_font_webkit_names.h" 10 #include "chrome/common/pref_font_webkit_names.h"
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 #if !defined(OS_ANDROID) 1325 #if !defined(OS_ANDROID)
1326 // Whether or not this profile has been shown the Welcome page. 1326 // Whether or not this profile has been shown the Welcome page.
1327 const char kHasSeenWelcomePage[] = "browser.has_seen_welcome_page"; 1327 const char kHasSeenWelcomePage[] = "browser.has_seen_welcome_page";
1328 #endif 1328 #endif
1329 1329
1330 #if defined(OS_WIN) 1330 #if defined(OS_WIN)
1331 // Whether or not this profile has been shown the Win10 promo page. 1331 // Whether or not this profile has been shown the Win10 promo page.
1332 const char kHasSeenWin10PromoPage[] = "browser.has_seen_win10_promo_page"; 1332 const char kHasSeenWin10PromoPage[] = "browser.has_seen_win10_promo_page";
1333 #endif 1333 #endif
1334 1334
1335 // *************** LOCAL STATE *************** 1335 // *************** LOCAL STATE ***************
gab 2017/01/09 20:06:43 Prefs below this line are stored in Local State. Y
Ivan Šandrk 2017/01/09 20:25:54 Can you perhaps explain me the difference? I'm qui
gab 2017/01/09 20:47:01 Local State is for browser-wide prefs. Preferences
Ivan Šandrk 2017/01/11 17:41:50 Thanks for the explanation gab. I learned today t
1336 // These are attached to the machine/installation 1336 // These are attached to the machine/installation
1337 1337
1338 // Directory of the last profile used. 1338 // Directory of the last profile used.
1339 const char kProfileLastUsed[] = "profile.last_used"; 1339 const char kProfileLastUsed[] = "profile.last_used";
1340 1340
1341 // List of directories of the profiles last active. 1341 // List of directories of the profiles last active.
1342 const char kProfilesLastActive[] = "profile.last_active_profiles"; 1342 const char kProfilesLastActive[] = "profile.last_active_profiles";
1343 1343
1344 // Total number of profiles created for this Chrome build. Used to tag profile 1344 // Total number of profiles created for this Chrome build. Used to tag profile
1345 // directories. 1345 // directories.
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 const char kReportArcStatusEnabled[] = "arc.status_reporting_enabled"; 1895 const char kReportArcStatusEnabled[] = "arc.status_reporting_enabled";
1896 1896
1897 // Dictionary indicating current network bandwidth throttling settings. 1897 // Dictionary indicating current network bandwidth throttling settings.
1898 // Contains a boolean (is throttling enabled) and two integers (upload rate 1898 // Contains a boolean (is throttling enabled) and two integers (upload rate
1899 // and download rate in kbits/s to throttle to) 1899 // and download rate in kbits/s to throttle to)
1900 const char kNetworkThrottlingEnabled[] = "net.throttling_enabled"; 1900 const char kNetworkThrottlingEnabled[] = "net.throttling_enabled";
1901 1901
1902 // Boolean prefs for the local status of the touchscreen. 1902 // Boolean prefs for the local status of the touchscreen.
1903 const char kTouchscreenEnabledLocal[] = "events.touch_screen.enabled_local"; 1903 const char kTouchscreenEnabledLocal[] = "events.touch_screen.enabled_local";
1904 1904
1905 // Dictionary saving user choices regarding granted permissions to
1906 // extensions/apps for usage of APIs. In Public Sessions API usage is restricted
1907 // to protect the user from a malicious device owner/admin. This dictionary will
1908 // not be persisted across sessions.
1909 const char kPublicSessionPermissionsUserChoiceCache[] =
1910 "public_session.permissions.user_choice_cache";
gab 2017/01/09 20:06:43 I don't see existing public_session.* prefs. With
Ivan Šandrk 2017/01/09 20:25:54 I'll think of something else here. Can I just put
gab 2017/01/09 20:47:01 Top-level isn't done often either, maybe extension
Devlin 2017/01/09 21:22:41 You could store this in ExtensionPrefs, which is t
Ivan Šandrk 2017/01/11 17:41:50 Thanks for the suggestion devlin. I'll keep it thi
Ivan Šandrk 2017/01/11 17:41:51 I hope this one sounds ok.
gab 2017/01/11 19:13:33 If that's where all extensions.* prefs are then th
1911
1905 #endif // defined(OS_CHROMEOS) 1912 #endif // defined(OS_CHROMEOS)
1906 1913
1907 // Whether there is a Flash version installed that supports clearing LSO data. 1914 // Whether there is a Flash version installed that supports clearing LSO data.
1908 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled"; 1915 const char kClearPluginLSODataEnabled[] = "browser.clear_lso_data_enabled";
1909 1916
1910 // Whether we should show Pepper Flash-specific settings. 1917 // Whether we should show Pepper Flash-specific settings.
1911 const char kPepperFlashSettingsEnabled[] = 1918 const char kPepperFlashSettingsEnabled[] =
1912 "browser.pepper_flash_settings_enabled"; 1919 "browser.pepper_flash_settings_enabled";
1913 1920
1914 // String which specifies where to store the disk cache. 1921 // String which specifies where to store the disk cache.
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 const char kSearchGeolocationPreDisclosureMetricsRecorded[] = 2355 const char kSearchGeolocationPreDisclosureMetricsRecorded[] =
2349 "search_geolocation_pre_disclosure_metrics_recorded"; 2356 "search_geolocation_pre_disclosure_metrics_recorded";
2350 2357
2351 // Whether the metrics for the state of geolocation post-disclosure being shown 2358 // Whether the metrics for the state of geolocation post-disclosure being shown
2352 // have been recorded. 2359 // have been recorded.
2353 const char kSearchGeolocationPostDisclosureMetricsRecorded[] = 2360 const char kSearchGeolocationPostDisclosureMetricsRecorded[] =
2354 "search_geolocation_post_disclosure_metrics_recorded"; 2361 "search_geolocation_post_disclosure_metrics_recorded";
2355 #endif 2362 #endif
2356 2363
2357 } // namespace prefs 2364 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/data/extensions/api_test/page_capture/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698