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

Side by Side Diff: content/public/common/content_features.cc

Issue 2553153002: [DO NOT COMMIT] [DO NOT REVIEW] flip LoadingWithMojo
Patch Set: 2017-09-29 Created 3 years, 2 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 | « no previous file | 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_features.h" 6 #include "content/public/common/content_features.h"
7 7
8 namespace features { 8 namespace features {
9 9
10 // All features in alphabetical order. 10 // All features in alphabetical order.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 "LazyInitializeMediaControls", base::FEATURE_ENABLED_BY_DEFAULT}; 126 "LazyInitializeMediaControls", base::FEATURE_ENABLED_BY_DEFAULT};
127 127
128 // Enables lazily parsing css properties for performance. 128 // Enables lazily parsing css properties for performance.
129 const base::Feature kLazyParseCSS{"LazyParseCSS", 129 const base::Feature kLazyParseCSS{"LazyParseCSS",
130 base::FEATURE_DISABLED_BY_DEFAULT}; 130 base::FEATURE_DISABLED_BY_DEFAULT};
131 131
132 // Use Mojo IPC for resource loading. 132 // Use Mojo IPC for resource loading.
133 const base::Feature kLoadingWithMojo { 133 const base::Feature kLoadingWithMojo {
134 "LoadingWithMojo", 134 "LoadingWithMojo",
135 #if defined(OS_ANDROID) 135 #if defined(OS_ANDROID)
136 base::FEATURE_ENABLED_BY_DEFAULT
137 #else
136 base::FEATURE_DISABLED_BY_DEFAULT 138 base::FEATURE_DISABLED_BY_DEFAULT
137 #else
138 base::FEATURE_ENABLED_BY_DEFAULT
139 #endif 139 #endif
140 }; 140 };
141 141
142 // Enables the memory coordinator. 142 // Enables the memory coordinator.
143 // WARNING: 143 // WARNING:
144 // The memory coordinator is not ready for use and enabling this may cause 144 // The memory coordinator is not ready for use and enabling this may cause
145 // unexpected memory regression at this point. Please do not enable this. 145 // unexpected memory regression at this point. Please do not enable this.
146 const base::Feature kMemoryCoordinator { 146 const base::Feature kMemoryCoordinator {
147 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT 147 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT
148 }; 148 };
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 // Enables to use a snapshot file in creating V8 contexts. 453 // Enables to use a snapshot file in creating V8 contexts.
454 const base::Feature kV8ContextSnapshot{"V8ContextSnapshot", 454 const base::Feature kV8ContextSnapshot{"V8ContextSnapshot",
455 base::FEATURE_DISABLED_BY_DEFAULT}; 455 base::FEATURE_DISABLED_BY_DEFAULT};
456 456
457 bool IsMojoBlobsEnabled() { 457 bool IsMojoBlobsEnabled() {
458 return base::FeatureList::IsEnabled(features::kMojoBlobs) || 458 return base::FeatureList::IsEnabled(features::kMojoBlobs) ||
459 base::FeatureList::IsEnabled(features::kNetworkService); 459 base::FeatureList::IsEnabled(features::kNetworkService);
460 } 460 }
461 461
462 } // namespace features 462 } // namespace features
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698