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

Unified Diff: android_webview/native/aw_contents.cc

Issue 1579653003: Add some temporary logging to AwContentsGarbageCollectionTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 523c63772923cf611ed6c97dc7e318ca50a76687..75b35bf988ebb118299d7bc58d5b6ae4f8ff5a03 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -193,7 +193,10 @@ AwContents::AwContents(scoped_ptr<WebContents> web_contents)
switches::kDisablePageVisibility)),
web_contents_(std::move(web_contents)),
renderer_manager_key_(GLViewRendererManager::GetInstance()->NullKey()) {
- base::subtle::NoBarrier_AtomicIncrement(&g_instance_count, 1);
+ base::subtle::Atomic32 instance_count =
+ base::subtle::NoBarrier_AtomicIncrement(&g_instance_count, 1);
+ VLOG(2) << "AwContents::~AwContents " << this << " instance_count "
+ << instance_count;
icon_helper_.reset(new IconHelper(web_contents_.get()));
icon_helper_->SetListener(this);
web_contents_->SetUserData(android_webview::kAwContentsUserDataKey,
@@ -302,6 +305,8 @@ AwContents::~AwContents() {
base::MemoryPressureListener::NotifyMemoryPressure(
base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL);
}
+ VLOG(2) << "AwContents::~AwContents " << this << " instance_count "
+ << instance_count;
AwContentsLifecycleNotifier::OnWebViewDestroyed();
}
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698