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

Unified Diff: mojo/service_manager/background_service_loader.cc

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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: mojo/service_manager/background_service_loader.cc
diff --git a/mojo/service_manager/background_service_loader.cc b/mojo/service_manager/background_service_loader.cc
index ba365b0f9c56c2c9c8796bbc112bb2731d2ff41e..d4dcd4a2e65f5166b936fe502e004f80941c5a7d 100644
--- a/mojo/service_manager/background_service_loader.cc
+++ b/mojo/service_manager/background_service_loader.cc
@@ -16,7 +16,7 @@ class BackgroundServiceLoader::BackgroundLoader {
void LoadService(ServiceManager* manager,
const GURL& url,
- ScopedShellHandle shell_handle) {
+ ScopedMessagePipeHandle shell_handle) {
loader_->LoadService(manager, url, shell_handle.Pass());
}
@@ -48,16 +48,18 @@ BackgroundServiceLoader::~BackgroundServiceLoader() {
thread_.Stop();
}
-void BackgroundServiceLoader::LoadService(ServiceManager* manager,
- const GURL& url,
- ScopedShellHandle service_handle) {
+void BackgroundServiceLoader::LoadService(
+ ServiceManager* manager,
+ const GURL& url,
+ ScopedMessagePipeHandle service_handle) {
if (!thread_.IsRunning())
thread_.Start();
thread_.message_loop()->PostTask(
FROM_HERE,
base::Bind(&BackgroundServiceLoader::LoadServiceOnBackgroundThread,
base::Unretained(this), manager, url,
- base::Owned(new ScopedShellHandle(service_handle.Pass()))));
+ base::Owned(
+ new ScopedMessagePipeHandle(service_handle.Pass()))));
}
void BackgroundServiceLoader::OnServiceError(ServiceManager* manager,
@@ -73,7 +75,7 @@ void BackgroundServiceLoader::OnServiceError(ServiceManager* manager,
void BackgroundServiceLoader::LoadServiceOnBackgroundThread(
ServiceManager* manager,
const GURL& url,
- ScopedShellHandle* shell_handle) {
+ ScopedMessagePipeHandle* shell_handle) {
if (!background_loader_)
background_loader_ = new BackgroundLoader(loader_.get());
background_loader_->LoadService(manager, url, shell_handle->Pass());

Powered by Google App Engine
This is Rietveld 408576698