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

Unified Diff: chrome/browser/image_decoder.cc

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 years, 6 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: chrome/browser/image_decoder.cc
diff --git a/chrome/browser/image_decoder.cc b/chrome/browser/image_decoder.cc
index adb15c3fcb7784a4c870da9164d4d9e42fd94d9d..93fce3b9d6c3786b3e242b235dbeae16d54b693f 100644
--- a/chrome/browser/image_decoder.cc
+++ b/chrome/browser/image_decoder.cc
@@ -13,6 +13,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/utility_process_host.h"
#include "content/public/common/service_registry.h"
+#include "services/shell/public/cpp/interface_provider.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/l10n/l10n_util.h"
@@ -186,9 +187,7 @@ void ImageDecoder::StartBatchMode() {
delete utility_process_host_.get();
return;
}
- content::ServiceRegistry* service_registry =
- utility_process_host_->GetServiceRegistry();
- service_registry->ConnectToRemoteService(mojo::GetProxy(&decoder_));
+ utility_process_host_->GetRemoteInterfaces()->GetInterface(&decoder_);
}
void ImageDecoder::StopBatchMode() {

Powered by Google App Engine
This is Rietveld 408576698