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

Unified Diff: components/arc/arc_service_manager.cc

Issue 2557513004: Remove explicit singletonness of ArcBridgeService part 3. (Closed)
Patch Set: Address comments. Created 4 years 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: components/arc/arc_service_manager.cc
diff --git a/components/arc/arc_service_manager.cc b/components/arc/arc_service_manager.cc
index c8718242774ea13ed33c0567b2434af2bd22d20c..fd92b9d567a94e46c49fae1ff9dcaeb40dc4d46c 100644
--- a/components/arc/arc_service_manager.cc
+++ b/components/arc/arc_service_manager.cc
@@ -51,7 +51,8 @@ ArcServiceManager::~ArcServiceManager() {
// static
ArcServiceManager* ArcServiceManager::Get() {
- DCHECK(g_arc_service_manager);
+ if (!g_arc_service_manager)
+ return nullptr;
DCHECK(g_arc_service_manager->thread_checker_.CalledOnValidThread());
return g_arc_service_manager;
}
« no previous file with comments | « chrome/browser/ui/views/arc_app_dialog_view_browsertest.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698