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

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

Issue 2814553002: Disable the image notification property on MacOS (Closed)
Patch Set: Reset test expectations for mac stable tests 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 71
72 #if defined(OS_CHROMEOS) 72 #if defined(OS_CHROMEOS)
73 WebRuntimeFeatures::EnableForceTallerSelectPopup(true); 73 WebRuntimeFeatures::EnableForceTallerSelectPopup(true);
74 #endif 74 #endif
75
76 // The Notification Center on Mac OS X does not support content images.
77 #if !defined(OS_MACOSX)
78 WebRuntimeFeatures::EnableNotificationContentImage(true);
79 #endif
75 } 80 }
76 81
77 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( 82 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
78 const base::CommandLine& command_line) { 83 const base::CommandLine& command_line) {
79 bool enableExperimentalWebPlatformFeatures = command_line.HasSwitch( 84 bool enableExperimentalWebPlatformFeatures = command_line.HasSwitch(
80 switches::kEnableExperimentalWebPlatformFeatures); 85 switches::kEnableExperimentalWebPlatformFeatures);
81 if (enableExperimentalWebPlatformFeatures) 86 if (enableExperimentalWebPlatformFeatures)
82 WebRuntimeFeatures::EnableExperimentalFeatures(true); 87 WebRuntimeFeatures::EnableExperimentalFeatures(true);
83 88
84 WebRuntimeFeatures::EnableOriginTrials( 89 WebRuntimeFeatures::EnableOriginTrials(
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 392 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
388 std::vector<std::string> disabled_features = base::SplitString( 393 std::vector<std::string> disabled_features = base::SplitString(
389 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 394 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
390 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 395 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
391 for (const std::string& feature : disabled_features) 396 for (const std::string& feature : disabled_features)
392 WebRuntimeFeatures::EnableFeatureFromString(feature, false); 397 WebRuntimeFeatures::EnableFeatureFromString(feature, false);
393 } 398 }
394 } 399 }
395 400
396 } // namespace content 401 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698