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

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

Issue 2803303002: Disable the image notification property on MacOS (Closed)
Patch Set: review 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 // The Notification Center on Mac OS X does not support content images.
73 #if defined(OS_MACOSX)
74 WebRuntimeFeatures::enableNotificationContentImage(false);
75 #endif
71 } 76 }
72 77
73 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( 78 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
74 const base::CommandLine& command_line) { 79 const base::CommandLine& command_line) {
75 bool enableExperimentalWebPlatformFeatures = command_line.HasSwitch( 80 bool enableExperimentalWebPlatformFeatures = command_line.HasSwitch(
76 switches::kEnableExperimentalWebPlatformFeatures); 81 switches::kEnableExperimentalWebPlatformFeatures);
77 if (enableExperimentalWebPlatformFeatures) 82 if (enableExperimentalWebPlatformFeatures)
78 WebRuntimeFeatures::enableExperimentalFeatures(true); 83 WebRuntimeFeatures::enableExperimentalFeatures(true);
79 84
80 WebRuntimeFeatures::enableOriginTrials( 85 WebRuntimeFeatures::enableOriginTrials(
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 388 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
384 std::vector<std::string> disabled_features = base::SplitString( 389 std::vector<std::string> disabled_features = base::SplitString(
385 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 390 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
386 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 391 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
387 for (const std::string& feature : disabled_features) 392 for (const std::string& feature : disabled_features)
388 WebRuntimeFeatures::enableFeatureFromString(feature, false); 393 WebRuntimeFeatures::enableFeatureFromString(feature, false);
389 } 394 }
390 } 395 }
391 396
392 } // namespace content 397 } // 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