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

Side by Side Diff: content/child/runtime_features.cc

Issue 2803303002: Disable the image notification property on MacOS (Closed)
Patch Set: Fix test Created 3 years, 8 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/browser/notifications/platform_notification_service_interactive_uitest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/child/runtime_features.h" 5 #include "content/child/runtime_features.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #if !(defined OS_ANDROID || defined OS_CHROMEOS) 61 #if !(defined OS_ANDROID || defined OS_CHROMEOS)
62 // Only Android, ChromeOS support NetInfo right now. 62 // Only Android, ChromeOS support NetInfo right now.
63 WebRuntimeFeatures::enableNetworkInformation(false); 63 WebRuntimeFeatures::enableNetworkInformation(false);
64 #endif 64 #endif
65 65
66 // Web Bluetooth is shipped on Android, ChromeOS & MacOS, experimental 66 // Web Bluetooth is shipped on Android, ChromeOS & MacOS, experimental
67 // otherwise. 67 // otherwise.
68 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_MACOSX) 68 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_MACOSX)
69 WebRuntimeFeatures::enableWebBluetooth(true); 69 WebRuntimeFeatures::enableWebBluetooth(true);
70 #endif 70 #endif
71
72 // Notification BigPicture is not available on MacOSX native
73 // notifications
Peter Beverloo 2017/04/07 20:30:16 // The Notification Center on Mac OS X does not su
Miguel Garcia 2017/04/07 20:35:59 Done.
74 #if defined(OS_MACOSX)
75 WebRuntimeFeatures::enableNotificationContentImage(false);
76 #endif
71 } 77 }
72 78
73 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( 79 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
74 const base::CommandLine& command_line) { 80 const base::CommandLine& command_line) {
75 bool enableExperimentalWebPlatformFeatures = command_line.HasSwitch( 81 bool enableExperimentalWebPlatformFeatures = command_line.HasSwitch(
76 switches::kEnableExperimentalWebPlatformFeatures); 82 switches::kEnableExperimentalWebPlatformFeatures);
77 if (enableExperimentalWebPlatformFeatures) 83 if (enableExperimentalWebPlatformFeatures)
78 WebRuntimeFeatures::enableExperimentalFeatures(true); 84 WebRuntimeFeatures::enableExperimentalFeatures(true);
79 85
80 WebRuntimeFeatures::enableOriginTrials( 86 WebRuntimeFeatures::enableOriginTrials(
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 389 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
384 std::vector<std::string> disabled_features = base::SplitString( 390 std::vector<std::string> disabled_features = base::SplitString(
385 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 391 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
386 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 392 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
387 for (const std::string& feature : disabled_features) 393 for (const std::string& feature : disabled_features)
388 WebRuntimeFeatures::enableFeatureFromString(feature, false); 394 WebRuntimeFeatures::enableFeatureFromString(feature, false);
389 } 395 }
390 } 396 }
391 397
392 } // namespace content 398 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/notifications/platform_notification_service_interactive_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698