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

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

Issue 933423003: Make BackgroundContentsService start up BackgroundContents with a delay, as for ExtensionHosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: edulcni# Created 5 years, 10 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/shell/browser/shell_extension_host_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_extension_host_delegate.cc
diff --git a/extensions/shell/browser/shell_extension_host_delegate.cc b/extensions/shell/browser/shell_extension_host_delegate.cc
index d06363e31b83d122f048daefb56b0bc563f40258..51c73341abfaf518f652b99d435fd68729056930 100644
--- a/extensions/shell/browser/shell_extension_host_delegate.cc
+++ b/extensions/shell/browser/shell_extension_host_delegate.cc
@@ -4,7 +4,9 @@
#include "extensions/shell/browser/shell_extension_host_delegate.h"
+#include "base/lazy_instance.h"
#include "base/logging.h"
+#include "extensions/browser/serial_extension_host_queue.h"
#include "extensions/shell/browser/media_capture_util.h"
#include "extensions/shell/browser/shell_extension_web_contents_observer.h"
@@ -61,4 +63,11 @@ bool ShellExtensionHostDelegate::CheckMediaAccessPermission(
return true;
}
+static base::LazyInstance<SerialExtensionHostQueue> g_queue =
+ LAZY_INSTANCE_INITIALIZER;
+
+ExtensionHostQueue* ShellExtensionHostDelegate::GetExtensionHostQueue() const {
+ return g_queue.Pointer();
+}
+
} // namespace extensions
« no previous file with comments | « extensions/shell/browser/shell_extension_host_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698