diff options
author | thestig <thestig@chromium.org> | 2015-09-25 01:17:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-25 08:18:01 +0000 |
commit | 3b6a2f11c70c112a2c15ddb996df78d665486ae1 (patch) | |
tree | 77ad9702f312c9d7d2ba809e56288581403f33a8 /android_webview/browser/browser_view_renderer.cc | |
parent | 3f0c5811aa9d9c5116e054c9d919bd5e4897ea7f (diff) | |
download | chromium_src-3b6a2f11c70c112a2c15ddb996df78d665486ae1.zip chromium_src-3b6a2f11c70c112a2c15ddb996df78d665486ae1.tar.gz chromium_src-3b6a2f11c70c112a2c15ddb996df78d665486ae1.tar.bz2 |
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}
Diffstat (limited to 'android_webview/browser/browser_view_renderer.cc')
-rw-r--r-- | android_webview/browser/browser_view_renderer.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/android_webview/browser/browser_view_renderer.cc b/android_webview/browser/browser_view_renderer.cc index 4bf5e4b..07dae10 100644 --- a/android_webview/browser/browser_view_renderer.cc +++ b/android_webview/browser/browser_view_renderer.cc @@ -36,13 +36,14 @@ const int64 kFallbackTickTimeoutInMilliseconds = 100; const size_t kMemoryMultiplier = 20; const size_t kBytesPerPixel = 4; const size_t kMemoryAllocationStep = 5 * 1024 * 1024; -uint64 g_memory_override_in_bytes = 0u; +uint64_t g_memory_override_in_bytes = 0u; -const void* kBrowserViewRendererUserDataKey = &kBrowserViewRendererUserDataKey; +const void* const kBrowserViewRendererUserDataKey = + &kBrowserViewRendererUserDataKey; class BrowserViewRendererUserData : public base::SupportsUserData::Data { public: - BrowserViewRendererUserData(BrowserViewRenderer* ptr) : bvr_(ptr) {} + explicit BrowserViewRendererUserData(BrowserViewRenderer* ptr) : bvr_(ptr) {} static BrowserViewRenderer* GetBrowserViewRenderer( content::WebContents* web_contents) { |