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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 1370603002: Make some global pointers const void* const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 37438d3e472806b5429bad06353a39ddeb2b3d38..d07a149be46dbd3bff784141adcbd032785bf6d5 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -88,7 +88,7 @@ namespace content {
namespace {
-const void* kContentViewUserDataKey = &kContentViewUserDataKey;
+const void* const kContentViewUserDataKey = &kContentViewUserDataKey;
int GetRenderProcessIdFromRenderViewHost(RenderViewHost* host) {
DCHECK(host);
@@ -96,8 +96,7 @@ int GetRenderProcessIdFromRenderViewHost(RenderViewHost* host) {
DCHECK(render_process);
if (render_process->HasConnection())
return render_process->GetHandle();
- else
- return 0;
+ return 0;
}
ScopedJavaLocalRef<jobject> CreateJavaRect(

Powered by Google App Engine
This is Rietveld 408576698