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

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

Issue 2886433002: [Android] Adding content settings provider for notification channels (Closed)
Patch Set: Added unit tests (refactored out a class for jni calls) 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
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 #if BUILDFLAG(ENABLE_PLUGINS) 308 #if BUILDFLAG(ENABLE_PLUGINS)
309 // Disables Plugin Power Saver when Flash is in ALLOW mode. 309 // Disables Plugin Power Saver when Flash is in ALLOW mode.
310 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode", 310 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode",
311 base::FEATURE_DISABLED_BY_DEFAULT}; 311 base::FEATURE_DISABLED_BY_DEFAULT};
312 #endif 312 #endif
313 313
314 const base::Feature kSafeSearchUrlReporting{"SafeSearchUrlReporting", 314 const base::Feature kSafeSearchUrlReporting{"SafeSearchUrlReporting",
315 base::FEATURE_DISABLED_BY_DEFAULT}; 315 base::FEATURE_DISABLED_BY_DEFAULT};
316 316
317 #if defined(OS_ANDROID)
318 // Enables separate notification channels in Android O for notifications from
319 // different origins, instead of sending them all to a single 'Sites' channel.
320 const base::Feature kSiteNotificationChannels{
321 "SiteNotificationChannels", base::FEATURE_DISABLED_BY_DEFAULT};
322 #endif // defined (OS_ANDROID)
323
317 // A new user experience for transitioning into fullscreen and mouse pointer 324 // A new user experience for transitioning into fullscreen and mouse pointer
318 // lock states. 325 // lock states.
319 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", 326 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI",
320 base::FEATURE_ENABLED_BY_DEFAULT}; 327 base::FEATURE_ENABLED_BY_DEFAULT};
321 328
322 // Enables or disables UI in MD Settings to view content settings grouped by 329 // Enables or disables UI in MD Settings to view content settings grouped by
323 // origin. 330 // origin.
324 const base::Feature kSiteDetails{"SiteDetails", 331 const base::Feature kSiteDetails{"SiteDetails",
325 base::FEATURE_DISABLED_BY_DEFAULT}; 332 base::FEATURE_DISABLED_BY_DEFAULT};
326 333
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 return base::FeatureList::IsEnabled(features::kPrefService) || 391 return base::FeatureList::IsEnabled(features::kPrefService) ||
385 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 392 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
386 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 393 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
387 switches::kMusConfig) == switches::kMash; 394 switches::kMusConfig) == switches::kMash;
388 #else 395 #else
389 false; 396 false;
390 #endif 397 #endif
391 } 398 }
392 399
393 } // namespace features 400 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698