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

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

Issue 2829123003: Make media permission requests go through the PermissionManager (Closed)
Patch Set: Grouped requests Created 3 years, 7 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/chrome_features.h ('k') | tools/metrics/histograms/histograms.xml » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chrome_features.h" 5 #include "chrome/common/chrome_features.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "extensions/features/features.h" 9 #include "extensions/features/features.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // thread. 308 // thread.
309 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", 309 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree",
310 base::FEATURE_ENABLED_BY_DEFAULT}; 310 base::FEATURE_ENABLED_BY_DEFAULT};
311 #endif 311 #endif
312 312
313 // Experiment to use grouped permission infobars which could show and handle 313 // Experiment to use grouped permission infobars which could show and handle
314 // multiple permission requests. 314 // multiple permission requests.
315 const base::Feature kUseGroupedPermissionInfobars{ 315 const base::Feature kUseGroupedPermissionInfobars{
316 "UseGroupedPermissionInfobars", base::FEATURE_DISABLED_BY_DEFAULT}; 316 "UseGroupedPermissionInfobars", base::FEATURE_DISABLED_BY_DEFAULT};
317 317
318 // Feature to use the PermissionManager to show prompts for WebRTC permission
319 // requests.
320 const base::Feature kUsePermissionManagerForMediaRequests{
321 "UsePermissionManagerForMediaRequests", base::FEATURE_DISABLED_BY_DEFAULT};
322
318 #if defined(OS_CHROMEOS) 323 #if defined(OS_CHROMEOS)
319 // Enables or disables the opt-in IME menu in the language settings page. 324 // Enables or disables the opt-in IME menu in the language settings page.
320 const base::Feature kOptInImeMenu{"OptInImeMenu", 325 const base::Feature kOptInImeMenu{"OptInImeMenu",
321 base::FEATURE_ENABLED_BY_DEFAULT}; 326 base::FEATURE_ENABLED_BY_DEFAULT};
322 327
323 // Enables or disables pin quick unlock. 328 // Enables or disables pin quick unlock.
324 const base::Feature kQuickUnlockPin{"QuickUnlockPin", 329 const base::Feature kQuickUnlockPin{"QuickUnlockPin",
325 base::FEATURE_ENABLED_BY_DEFAULT}; 330 base::FEATURE_ENABLED_BY_DEFAULT};
326 331
327 // Enables pin on the login screen. 332 // Enables pin on the login screen.
(...skipping 17 matching lines...) Expand all
345 return base::FeatureList::IsEnabled(features::kPrefService) || 350 return base::FeatureList::IsEnabled(features::kPrefService) ||
346 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 351 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
347 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 352 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
348 switches::kMusConfig) == switches::kMash; 353 switches::kMusConfig) == switches::kMash;
349 #else 354 #else
350 false; 355 false;
351 #endif 356 #endif
352 } 357 }
353 358
354 } // namespace features 359 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698