[go: nahoru, domu]

Make some global pointers const void* const.

Otherwise the thing the pointers point to can change.

Review URL: https://codereview.chromium.org/1370603002

Cr-Commit-Position: refs/heads/master@{#350785}
diff --git a/components/navigation_interception/intercept_navigation_delegate.cc b/components/navigation_interception/intercept_navigation_delegate.cc
index ba9053d6..f5816bf 100644
--- a/components/navigation_interception/intercept_navigation_delegate.cc
+++ b/components/navigation_interception/intercept_navigation_delegate.cc
@@ -31,7 +31,7 @@
 
 const int kMaxValidityOfUserGestureCarryoverInSeconds = 10;
 
-const void* kInterceptNavigationDelegateUserDataKey =
+const void* const kInterceptNavigationDelegateUserDataKey =
     &kInterceptNavigationDelegateUserDataKey;
 
 bool CheckIfShouldIgnoreNavigationOnUIThread(WebContents* source,