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

Unified Diff: extensions/shell/browser/shell_extensions_browser_client.cc

Issue 2580063003: AppShell: Ignore channel requirements of extension API features (Closed)
Patch Set: rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/features/feature.cc ('k') | extensions/shell/test/shell_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_extensions_browser_client.cc
diff --git a/extensions/shell/browser/shell_extensions_browser_client.cc b/extensions/shell/browser/shell_extensions_browser_client.cc
index 36fa3e3e48acb6998d9fb7f22fbdbe8869fe50c9..1244f4abf6cc692ed67e44186475e21c8b0f94d0 100644
--- a/extensions/shell/browser/shell_extensions_browser_client.cc
+++ b/extensions/shell/browser/shell_extensions_browser_client.cc
@@ -8,6 +8,7 @@
#include "base/memory/ptr_util.h"
#include "build/build_config.h"
+#include "components/version_info/version_info.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
@@ -20,6 +21,7 @@
#include "extensions/browser/null_app_sorting.h"
#include "extensions/browser/updater/null_extension_cache.h"
#include "extensions/browser/url_request_util.h"
+#include "extensions/common/features/feature_channel.h"
#include "extensions/shell/browser/api/generated_api_registration.h"
#include "extensions/shell/browser/delegates/shell_kiosk_delegate.h"
#include "extensions/shell/browser/shell_extension_host_delegate.h"
@@ -45,6 +47,9 @@ ShellExtensionsBrowserClient::ShellExtensionsBrowserClient(
pref_service_(pref_service),
api_client_(new ShellExtensionsAPIClient),
extension_cache_(new NullExtensionCache()) {
+ // app_shell does not have a concept of channel yet, so leave UNKNOWN to
+ // enable all channel-dependent extension APIs.
+ SetCurrentChannel(version_info::Channel::UNKNOWN);
}
ShellExtensionsBrowserClient::~ShellExtensionsBrowserClient() {
« no previous file with comments | « extensions/common/features/feature.cc ('k') | extensions/shell/test/shell_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698