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

Unified Diff: components/arc/arc_bridge_bootstrap.cc

Issue 1925183004: arc_bridge: Add more logging, plus cleanup (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Fixed unit tests Created 4 years, 8 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
« no previous file with comments | « components/arc/arc_bridge_bootstrap.h ('k') | components/arc/arc_bridge_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_bridge_bootstrap.cc
diff --git a/components/arc/arc_bridge_bootstrap.cc b/components/arc/arc_bridge_bootstrap.cc
index 5d856ef1d3f8455b4672d23709244759f9f53cd5..f20d8e374ba70e7e4dc43c105d7b19cd40185ff5 100644
--- a/components/arc/arc_bridge_bootstrap.cc
+++ b/components/arc/arc_bridge_bootstrap.cc
@@ -128,7 +128,7 @@ ArcBridgeBootstrapImpl::ArcBridgeBootstrapImpl() : weak_factory_(this) {}
ArcBridgeBootstrapImpl::~ArcBridgeBootstrapImpl() {
DCHECK(thread_checker_.CalledOnValidThread());
- DCHECK(state_ == State::STOPPED);
+ DCHECK(state_ == State::STOPPED || state_ == State::STOPPING);
}
void ArcBridgeBootstrapImpl::Start() {
@@ -329,14 +329,11 @@ void ArcBridgeBootstrapImpl::SetState(State state) {
// DCHECK on enum classes not supported.
DCHECK(state_ != state);
state_ = state;
+ VLOG(2) << "State: " << static_cast<uint32_t>(state_);
}
} // namespace
-ArcBridgeBootstrap::ArcBridgeBootstrap() {}
-
-ArcBridgeBootstrap::~ArcBridgeBootstrap() {}
-
// static
std::unique_ptr<ArcBridgeBootstrap> ArcBridgeBootstrap::Create() {
return base::WrapUnique(new ArcBridgeBootstrapImpl());
« no previous file with comments | « components/arc/arc_bridge_bootstrap.h ('k') | components/arc/arc_bridge_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698