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

Side by Side Diff: chrome/common/extensions/chrome_extensions_client.cc

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: factor feature_channel out of module_system Created 6 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 | Annotate | Revision Log
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 "chrome/common/extensions/chrome_extensions_client.h" 5 #include "chrome/common/extensions/chrome_extensions_client.h"
6 6
7 #include "apps/common/api/generated_schemas.h" 7 #include "apps/common/api/generated_schemas.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/common/chrome_version_info.h"
9 #include "chrome/common/extensions/api/generated_schemas.h" 10 #include "chrome/common/extensions/api/generated_schemas.h"
10 #include "chrome/common/extensions/chrome_manifest_handlers.h" 11 #include "chrome/common/extensions/chrome_manifest_handlers.h"
11 #include "chrome/common/extensions/extension_constants.h" 12 #include "chrome/common/extensions/extension_constants.h"
12 #include "chrome/common/extensions/features/chrome_channel_feature_filter.h" 13 #include "chrome/common/extensions/features/chrome_channel_feature_filter.h"
14 #include "chrome/common/extensions/features/feature_channel.h"
13 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
14 #include "content/public/common/url_constants.h" 16 #include "content/public/common/url_constants.h"
15 #include "extensions/common/api/generated_schemas.h" 17 #include "extensions/common/api/generated_schemas.h"
16 #include "extensions/common/common_manifest_handlers.h" 18 #include "extensions/common/common_manifest_handlers.h"
17 #include "extensions/common/extension.h" 19 #include "extensions/common/extension.h"
18 #include "extensions/common/features/base_feature_provider.h" 20 #include "extensions/common/features/base_feature_provider.h"
19 #include "extensions/common/manifest_constants.h" 21 #include "extensions/common/manifest_constants.h"
20 #include "extensions/common/manifest_handler.h" 22 #include "extensions/common/manifest_handler.h"
21 #include "extensions/common/permissions/api_permission_set.h" 23 #include "extensions/common/permissions/api_permission_set.h"
22 #include "extensions/common/permissions/permission_message.h" 24 #include "extensions/common/permissions/permission_message.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 175
174 return apps::api::GeneratedSchemas::Get(name); 176 return apps::api::GeneratedSchemas::Get(name);
175 } 177 }
176 178
177 void ChromeExtensionsClient::AddExtraFeatureFilters( 179 void ChromeExtensionsClient::AddExtraFeatureFilters(
178 SimpleFeature* feature) const { 180 SimpleFeature* feature) const {
179 feature->AddFilter( 181 feature->AddFilter(
180 scoped_ptr<SimpleFeatureFilter>(new ChromeChannelFeatureFilter(feature))); 182 scoped_ptr<SimpleFeatureFilter>(new ChromeChannelFeatureFilter(feature)));
181 } 183 }
182 184
185 bool ChromeExtensionsClient::ShouldSuppressFatalErrors() const {
186 // <= dev means dev, canary, and trunk.
187 return GetCurrentChannel() <= chrome::VersionInfo::CHANNEL_DEV;
188 }
189
183 // static 190 // static
184 ChromeExtensionsClient* ChromeExtensionsClient::GetInstance() { 191 ChromeExtensionsClient* ChromeExtensionsClient::GetInstance() {
185 return g_client.Pointer(); 192 return g_client.Pointer();
186 } 193 }
187 194
188 } // namespace extensions 195 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/chrome_extensions_client.h ('k') | chrome/renderer/extensions/app_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698