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

Unified Diff: chrome/browser/chromeos/arc/arc_print_service.cc

Issue 2357053002: Always use arc::InstanceHolder<T>::GetInstanceForMethod (Closed)
Patch Set: rebase, no code change Created 4 years, 3 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/chromeos/arc/arc_print_service.cc
diff --git a/chrome/browser/chromeos/arc/arc_print_service.cc b/chrome/browser/chromeos/arc/arc_print_service.cc
index 28de889953839e35bfa71d53f4c6f3f8dde43fe8..f1b3c446a8a3136a94a1581cc4a602f503781ce5 100644
--- a/chrome/browser/chromeos/arc/arc_print_service.cc
+++ b/chrome/browser/chromeos/arc/arc_print_service.cc
@@ -67,12 +67,8 @@ ArcPrintService::~ArcPrintService() {
void ArcPrintService::OnInstanceReady() {
mojom::PrintInstance* print_instance =
- arc_bridge_service()->print()->instance();
- if (!print_instance) {
- LOG(ERROR) << "OnPrintInstanceReady called, but no print instance found";
- return;
- }
-
+ arc_bridge_service()->print()->GetInstanceForMethod("Init");
+ DCHECK(print_instance);
print_instance->Init(binding_.CreateInterfacePtrAndBind());
}
« no previous file with comments | « chrome/browser/chromeos/arc/arc_policy_bridge.cc ('k') | chrome/browser/chromeos/arc/arc_process_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698