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

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

Issue 1469783002: Cleanup: Correctly spell success(ful). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format media Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/metrics/field_trial.h" 6 #include "base/metrics/field_trial.h"
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/metrics/sparse_histogram.h" 8 #include "base/metrics/sparse_histogram.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/win/registry.h" 10 #include "base/win/registry.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 base::win::RegKey blacklist_registry_key(HKEY_CURRENT_USER); 92 base::win::RegKey blacklist_registry_key(HKEY_CURRENT_USER);
93 blacklist_registry_key.DeleteKey(blacklist::kRegistryBeaconPath); 93 blacklist_registry_key.DeleteKey(blacklist::kRegistryBeaconPath);
94 } else { 94 } else {
95 AddFinchBlacklistToRegistry(); 95 AddFinchBlacklistToRegistry();
96 BrowserBlacklistBeaconSetup(); 96 BrowserBlacklistBeaconSetup();
97 } 97 }
98 98
99 // Report all successful blacklist interceptions. 99 // Report all successful blacklist interceptions.
100 ReportSuccessfulBlocks(); 100 ReportSuccessfulBlocks();
101 101
102 // Schedule another task to report all sucessful interceptions later. 102 // Schedule another task to report all successful interceptions later.
103 // This time delay should be long enough to catch any dlls that attempt to 103 // This time delay should be long enough to catch any dlls that attempt to
104 // inject after Chrome has started up. 104 // inject after Chrome has started up.
105 content::BrowserThread::PostDelayedTask( 105 content::BrowserThread::PostDelayedTask(
106 content::BrowserThread::UI, 106 content::BrowserThread::UI,
107 FROM_HERE, 107 FROM_HERE,
108 base::Bind(&ReportSuccessfulBlocks), 108 base::Bind(&ReportSuccessfulBlocks),
109 base::TimeDelta::FromSeconds(kBlacklistReportingDelaySec)); 109 base::TimeDelta::FromSeconds(kBlacklistReportingDelaySec));
110 } 110 }
111 111
112 // Note that running multiple chrome instances with distinct user data 112 // Note that running multiple chrome instances with distinct user data
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount, 198 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount,
199 static_cast<DWORD>(0)); 199 static_cast<DWORD>(0));
200 200
201 // Only report the blacklist as getting setup when both registry writes 201 // Only report the blacklist as getting setup when both registry writes
202 // succeed, since otherwise the blacklist wasn't properly setup. 202 // succeed, since otherwise the blacklist wasn't properly setup.
203 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS) 203 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS)
204 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED); 204 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED);
205 } 205 }
206 } 206 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698