summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util
diff options
context:
space:
mode:
authorsammc <sammc@chromium.org>2015-07-01 22:35:39 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-02 05:36:10 +0000
commit3c1076b56aa0277d60b9a8f7be7c99ab19ac1b93 (patch)
tree68af6191a4241a65b089a2c811f005eee500482b /chrome/installer/util
parent0cc813114186899b41b6c563d56df3626c2bc93d (diff)
downloadchromium_src-3c1076b56aa0277d60b9a8f7be7c99ab19ac1b93.zip
chromium_src-3c1076b56aa0277d60b9a8f7be7c99ab19ac1b93.tar.gz
chromium_src-3c1076b56aa0277d60b9a8f7be7c99ab19ac1b93.tar.bz2
clang/win: Build without -Wno-int-to-void-pointer-cast.
BUG=504697 TBR=cpu@chromium.org Review URL: https://codereview.chromium.org/1222563004 Cr-Commit-Position: refs/heads/master@{#337179}
Diffstat (limited to 'chrome/installer/util')
-rw-r--r--chrome/installer/util/user_experiment.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/installer/util/user_experiment.cc b/chrome/installer/util/user_experiment.cc
index 7df4c33..4eb0b28 100644
--- a/chrome/installer/util/user_experiment.cc
+++ b/chrome/installer/util/user_experiment.cc
@@ -275,8 +275,10 @@ void SetClient(const base::string16& experiment_group, bool last_write) {
// Use it to write the experiment results.
GoogleUpdateSettings::WriteGoogleUpdateSystemClientKey(
reg_key_handle, google_update::kRegClientField, experiment_group);
- if (last_write)
- CloseHandle((HANDLE) reg_key_handle);
+ if (last_write) {
+ CloseHandle(
+ reinterpret_cast<HANDLE>(static_cast<uintptr_t>(reg_key_handle)));
+ }
} else {
// Write to HKCU.
GoogleUpdateSettings::SetClient(experiment_group);