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

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: Added missing include 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
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..c7d950682c101d44d201140d61fd7956d5e9d9e7 100644
--- a/components/arc/arc_bridge_bootstrap.cc
+++ b/components/arc/arc_bridge_bootstrap.cc
@@ -128,7 +128,8 @@ ArcBridgeBootstrapImpl::ArcBridgeBootstrapImpl() : weak_factory_(this) {}
ArcBridgeBootstrapImpl::~ArcBridgeBootstrapImpl() {
DCHECK(thread_checker_.CalledOnValidThread());
- DCHECK(state_ == State::STOPPED);
+ VLOG(1) << "State: " << static_cast<uint32_t>(state_);
+ DCHECK(state_ == State::STOPPED || state_ == State::STOPPING);
}
void ArcBridgeBootstrapImpl::Start() {
@@ -329,14 +330,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());

Powered by Google App Engine
This is Rietveld 408576698