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

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

Issue 820583002: Adds support for media permission request handling on <appview> tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build Created 6 years 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
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 e4006f1d8ad688197991d5d431744b6f52d5f6b3..d418e56b883bd44f966d2107ff83dfa2e65c3c20 100644
--- a/extensions/shell/browser/shell_extensions_browser_client.cc
+++ b/extensions/shell/browser/shell_extensions_browser_client.cc
@@ -16,6 +16,7 @@
#include "extensions/shell/browser/api/generated_api_registration.h"
#include "extensions/shell/browser/shell_extension_host_delegate.h"
#include "extensions/shell/browser/shell_extension_system_factory.h"
+#include "extensions/shell/browser/shell_extensions_api_client.h"
#include "extensions/shell/browser/shell_runtime_api_delegate.h"
using content::BrowserContext;
@@ -28,7 +29,7 @@ ShellExtensionsBrowserClient::ShellExtensionsBrowserClient(
PrefService* pref_service)
: browser_context_(context),
pref_service_(pref_service),
- api_client_(new ExtensionsAPIClient),
+ api_client_(new ShellExtensionsAPIClient),
extension_cache_(new NullExtensionCache()) {
}
@@ -214,4 +215,9 @@ bool ShellExtensionsBrowserClient::IsMinBrowserVersionSupported(
return true;
}
+void ShellExtensionsBrowserClient::SetAPIClientForTest(
+ ExtensionsAPIClient* api_client) {
+ api_client_.reset(api_client);
+}
+
} // namespace extensions
« no previous file with comments | « extensions/shell/browser/shell_extensions_browser_client.h ('k') | extensions/test/data/app_view/apitest/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698