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

Unified Diff: apps/app_shim/app_shim_host_manager_mac.mm

Issue 15269003: Refactor extension handling code from AppShimHost into ExtensionAppShimHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Instantiate ExtensionAppShimHandler in AppShimHostManager. Created 7 years, 7 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
Index: apps/app_shim/app_shim_host_manager_mac.mm
diff --git a/apps/app_shim/app_shim_host_manager_mac.mm b/apps/app_shim/app_shim_host_manager_mac.mm
index 6133b9be38e253ddc0897d12a193e816e3452000..0cde8bb4007708678240e95b1a317ebde82a05b7 100644
--- a/apps/app_shim/app_shim_host_manager_mac.mm
+++ b/apps/app_shim/app_shim_host_manager_mac.mm
@@ -4,6 +4,7 @@
#include "apps/app_shim/app_shim_host_manager_mac.h"
+#include "apps/app_shim/app_shim_handler_mac.h"
#include "apps/app_shim/app_shim_host_mac.h"
#include "base/bind.h"
#include "base/files/file_path.h"
@@ -27,6 +28,7 @@ void CreateAppShimHost(const IPC::ChannelHandle& handle) {
AppShimHostManager::AppShimHostManager() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ apps::AppShimHandler::SetDefaultHandler(&extension_app_shim_handler_);
tapted 2013/05/23 02:29:39 You need to remove it in the destructor as well, o
jackhou1 2013/05/23 06:10:19 Done.
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
base::Bind(&AppShimHostManager::InitOnFileThread,

Powered by Google App Engine
This is Rietveld 408576698