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(); |
} |