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

Side by Side Diff: chrome/browser/enumerate_modules_model_win.cc

Issue 731373002: Enable MSVC warning for unused locals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another Windows fix Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/enumerate_modules_model_win.h" 5 #include "chrome/browser/enumerate_modules_model_win.h"
6 6
7 #include <Tlhelp32.h> 7 #include <Tlhelp32.h>
8 #include <wintrust.h> 8 #include <wintrust.h>
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 } 972 }
973 973
974 EnumerateModulesModel::~EnumerateModulesModel() { 974 EnumerateModulesModel::~EnumerateModulesModel() {
975 delete lock; 975 delete lock;
976 } 976 }
977 977
978 void EnumerateModulesModel::MaybePostScanningTask() { 978 void EnumerateModulesModel::MaybePostScanningTask() {
979 static bool done = false; 979 static bool done = false;
980 if (!done) { 980 if (!done) {
981 done = true; 981 done = true;
982
983 const CommandLine& cmd_line = *CommandLine::ForCurrentProcess();
984 if (base::win::GetVersion() == base::win::VERSION_XP) { 982 if (base::win::GetVersion() == base::win::VERSION_XP) {
985 check_modules_timer_.Start(FROM_HERE, 983 check_modules_timer_.Start(FROM_HERE,
986 base::TimeDelta::FromMilliseconds(kModuleCheckDelayMs), 984 base::TimeDelta::FromMilliseconds(kModuleCheckDelayMs),
987 this, &EnumerateModulesModel::ScanNow); 985 this, &EnumerateModulesModel::ScanNow);
988 } 986 }
989 } 987 }
990 } 988 }
991 989
992 void EnumerateModulesModel::DoneScanning() { 990 void EnumerateModulesModel::DoneScanning() {
993 confirmed_bad_modules_detected_ = 0; 991 confirmed_bad_modules_detected_ = 0;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 GenerateHash(base::WideToUTF8(module.location), &location); 1035 GenerateHash(base::WideToUTF8(module.location), &location);
1038 GenerateHash(base::WideToUTF8(module.description), &description); 1036 GenerateHash(base::WideToUTF8(module.description), &description);
1039 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); 1037 GenerateHash(base::WideToUTF8(module.digital_signer), &signer);
1040 1038
1041 base::string16 url = 1039 base::string16 url =
1042 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, 1040 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS,
1043 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), 1041 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location),
1044 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); 1042 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer));
1045 return GURL(base::UTF16ToUTF8(url)); 1043 return GURL(base::UTF16ToUTF8(url));
1046 } 1044 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698