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

Issue 1220133003: Fixed all unused-variable Clang warnings on Windows. (Closed)

Created:
5 years, 5 months ago by Matt Giuca
Modified:
5 years, 5 months ago
CC:
chromium-reviews, asanka, sadrul, browser-components-watch_chromium.org, scheib+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, benjhayden+dwatch_chromium.org, grt+watch_chromium.org, jam, darin-cc_chromium.org, kalyank, erikwright+watch_chromium.org, tapted, rickyz+watch_chromium.org, feature-media-reviews_chromium.org, caitkp+watch_chromium.org, rouslan+autofillwatch_chromium.org, wfh+watch_chromium.org, chromium-apps-reviews_chromium.org, tfarina, estade+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@iaccessible2-fix-gn
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed all unused-variable Clang warnings on Windows. Usually, fixed by removing the unused variables. Some variables had to be guarded by #ifs. Some variables could be used instead. Also removed unused test file sweep02_16b_mono_16KHz.raw. BUG=505319 TBR=rpaquay@chromium.org Committed: https://crrev.com/88867d310fc297151344fcf294d23554371b2644 Cr-Commit-Position: refs/heads/master@{#337767}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Revert changes to build files (save for next CL). #

Patch Set 3 : Fix GYP build with -Wunused-variable. #

Total comments: 1

Patch Set 4 : Address review comments. #

Patch Set 5 : Remove commented-out variables. #

Patch Set 6 : Rebase. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -106 lines) Patch
M base/process/process_util_unittest.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chrome_process_finder_win.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/enumerate_modules_model_unittest_win.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/gcd_private/gcd_private_apitest.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/hang_monitor/hung_window_detector.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/install_verification/win/imported_module_verification.cc View 2 chunks +2 lines, -0 lines 2 comments Download
M chrome/browser/memory_details_win.cc View 2 chunks +2 lines, -2 lines 2 comments Download
M chrome/browser/ui/browser_focus_uitest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/extension_message_bubble_factory.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/installer/gcapi/gcapi.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/installer/setup/install_worker_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/test/alternate_version_generator.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/util/google_update_settings_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/language_selector.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome_elf/breakpad.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cloud_print/common/win/install_utils.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cloud_print/virtual_driver/win/virtual_driver_helpers.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_ie_toolbar_import_win_unittest.cc View 1 2 3 2 chunks +9 lines, -8 lines 0 comments Download
M components/crash/app/breakpad_win.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/printing/test/print_web_view_helper_browsertest.cc View 1 2 2 chunks +5 lines, -11 lines 0 comments Download
M content/browser/download/base_file_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/child/npapi/webplugin_delegate_impl_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/plugin_list_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_service_record_win_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M media/audio/win/audio_output_win_unittest.cc View 1 chunk +0 lines, -3 lines 0 comments Download
D media/test/data/sweep02_16b_mono_16KHz.raw View Binary file 0 comments Download
M net/proxy/dhcp_proxy_script_fetcher_win.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M ppapi/proxy/video_decoder_resource_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/host/local_input_monitor_win.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 2 chunks +6 lines, -4 lines 2 comments Download
M sandbox/win/src/interception.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M sandbox/win/src/process_mitigations_test.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M ui/app_list/views/app_list_item_view.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/window_tree_host_win.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/base/win/atl_module.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ui/gfx/win/dpi.cc View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M ui/views/window/custom_frame_view.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (6 generated)
Nico
Super cool! It might be worth getting all the code changes in without the flag ...
5 years, 5 months ago (2015-07-02 17:34:26 UTC) #2
Matt Giuca
Good suggestion, moved the flag changes to https://codereview.chromium.org/1226573002/. Now we can land this before the ...
5 years, 5 months ago (2015-07-03 03:46:29 UTC) #3
Matt Giuca
Nico: PTAL at patch sets 3 and 4 (there are a lot more files touched ...
5 years, 5 months ago (2015-07-03 03:54:45 UTC) #5
Nico
still lgtm https://codereview.chromium.org/1220133003/diff/1/sandbox/win/src/process_mitigations_test.cc File sandbox/win/src/process_mitigations_test.cc (right): https://codereview.chromium.org/1220133003/diff/1/sandbox/win/src/process_mitigations_test.cc#newcode168 sandbox/win/src/process_mitigations_test.cc:168: // static const int MEM_EXECUTE_OPTION_ENABLE = 1; ...
5 years, 5 months ago (2015-07-03 04:11:15 UTC) #6
Matt Giuca
+jschuh for a quick question about sandbox/win/src/process_mitigations_test.cc. https://codereview.chromium.org/1220133003/diff/1/sandbox/win/src/process_mitigations_test.cc File sandbox/win/src/process_mitigations_test.cc (right): https://codereview.chromium.org/1220133003/diff/1/sandbox/win/src/process_mitigations_test.cc#newcode168 sandbox/win/src/process_mitigations_test.cc:168: // static ...
5 years, 5 months ago (2015-07-03 04:33:45 UTC) #8
jschuh
https://codereview.chromium.org/1220133003/diff/1/sandbox/win/src/process_mitigations_test.cc File sandbox/win/src/process_mitigations_test.cc (right): https://codereview.chromium.org/1220133003/diff/1/sandbox/win/src/process_mitigations_test.cc#newcode170 sandbox/win/src/process_mitigations_test.cc:170: // static const int MEM_EXECUTE_OPTION_ATL7_THUNK_EMULATION = 4; Yeah, looks ...
5 years, 5 months ago (2015-07-06 22:16:18 UTC) #9
Matt Giuca
https://codereview.chromium.org/1220133003/diff/1/sandbox/win/src/process_mitigations_test.cc File sandbox/win/src/process_mitigations_test.cc (right): https://codereview.chromium.org/1220133003/diff/1/sandbox/win/src/process_mitigations_test.cc#newcode170 sandbox/win/src/process_mitigations_test.cc:170: // static const int MEM_EXECUTE_OPTION_ATL7_THUNK_EMULATION = 4; Well they ...
5 years, 5 months ago (2015-07-07 04:52:17 UTC) #10
cpu_(ooo_6.6-7.5)
lgtm go ahead and CQ this. https://codereview.chromium.org/1220133003/diff/100001/chrome/browser/install_verification/win/imported_module_verification.cc File chrome/browser/install_verification/win/imported_module_verification.cc (right): https://codereview.chromium.org/1220133003/diff/100001/chrome/browser/install_verification/win/imported_module_verification.cc#newcode83 chrome/browser/install_verification/win/imported_module_verification.cc:83: // See crbug.com/316274. ...
5 years, 5 months ago (2015-07-07 17:39:24 UTC) #11
Matt Giuca
+rpaquay for device/bluetooth.
5 years, 5 months ago (2015-07-08 02:33:37 UTC) #13
Nico
On 2015/07/08 02:33:37, Matt Giuca wrote: > +rpaquay for device/bluetooth. (I think you can tbr ...
5 years, 5 months ago (2015-07-08 02:38:23 UTC) #14
Matt Giuca
https://codereview.chromium.org/1220133003/diff/100001/chrome/browser/install_verification/win/imported_module_verification.cc File chrome/browser/install_verification/win/imported_module_verification.cc (right): https://codereview.chromium.org/1220133003/diff/100001/chrome/browser/install_verification/win/imported_module_verification.cc#newcode83 chrome/browser/install_verification/win/imported_module_verification.cc:83: // See crbug.com/316274. On 2015/07/07 17:39:24, cpu wrote: > ...
5 years, 5 months ago (2015-07-08 02:51:28 UTC) #15
Matt Giuca
On 2015/07/08 02:38:23, Nico wrote: > (I think you can tbr device/; cpu and I ...
5 years, 5 months ago (2015-07-08 02:52:25 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1220133003/100001
5 years, 5 months ago (2015-07-08 02:53:09 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 5 months ago (2015-07-08 04:08:35 UTC) #20
commit-bot: I haz the power
5 years, 5 months ago (2015-07-08 04:09:32 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/88867d310fc297151344fcf294d23554371b2644
Cr-Commit-Position: refs/heads/master@{#337767}

Powered by Google App Engine
This is Rietveld 408576698