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: android_webview/browser/aw_browser_context.cc

Issue 337473004: aw: Use comparison DCHECKs where appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_browser_context.cc
diff --git a/android_webview/browser/aw_browser_context.cc b/android_webview/browser/aw_browser_context.cc
index 4287b02514445696ed74f8dba84bf9ef92daf4de..93650857e82a43dcfdc29c9bfa0bd5042488080c 100644
--- a/android_webview/browser/aw_browser_context.cc
+++ b/android_webview/browser/aw_browser_context.cc
@@ -52,7 +52,7 @@ AwBrowserContext::AwBrowserContext(
JniDependencyFactory* native_factory)
: context_storage_path_(path),
native_factory_(native_factory) {
- DCHECK(g_browser_context == NULL);
+ DCHECK(!g_browser_context);
g_browser_context = this;
// This constructor is entered during the creation of ContentBrowserClient,
@@ -61,7 +61,7 @@ AwBrowserContext::AwBrowserContext(
}
AwBrowserContext::~AwBrowserContext() {
- DCHECK(g_browser_context == this);
+ DCHECK_EQ(this, g_browser_context);
g_browser_context = NULL;
}
« no previous file with comments | « no previous file | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698