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

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

Issue 311893005: Can now adjust the number of retries before the blacklist is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding setup failure counter, UMA recording and unit tests Created 6 years, 6 months 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 #ifndef CHROME_BROWSER_CHROME_ELF_INIT_WIN_H_ 5 #ifndef CHROME_BROWSER_CHROME_ELF_INIT_WIN_H_
6 #define CHROME_BROWSER_CHROME_ELF_INIT_WIN_H_ 6 #define CHROME_BROWSER_CHROME_ELF_INIT_WIN_H_
7 7
8 #include "windows.h"
csharp 2014/06/05 14:55:01 Looking at code search, I think this should be "#i
krstnmnlsn 2014/06/09 20:20:47 The one example I can find in the style guide uses
robertshield 2014/06/09 20:24:29 Yes, please. All system headers use <>
9
8 // Field trial name and full name for the blacklist disabled group. 10 // Field trial name and full name for the blacklist disabled group.
9 extern const char kBrowserBlacklistTrialName[]; 11 extern const char kBrowserBlacklistTrialName[];
10 extern const char kBrowserBlacklistTrialDisabledGroupName[]; 12 extern const char kBrowserBlacklistTrialDisabledGroupName[];
11 13
14 // The number of failures that can occur on startup with the beacon enabled
15 // before we give up and turn off the blacklist.
16 extern const DWORD kBeaconAttempts;
17
12 // Prepare any initialization code for Chrome Elf's setup (This will generally 18 // Prepare any initialization code for Chrome Elf's setup (This will generally
13 // only affect future runs since Chrome Elf is already setup by this point). 19 // only affect future runs since Chrome Elf is already setup by this point).
14 void InitializeChromeElf(); 20 void InitializeChromeElf();
15 21
22 // Helper function to grab from registry the number of times the startup has
23 // failed before the blacklist was fully initialized. Will initialize the
24 // registry value to zero if unfound.
25 void GetBlacklistFailedCount(DWORD* failed_count);
26
16 // Set the required state for an enabled browser blacklist. 27 // Set the required state for an enabled browser blacklist.
17 void BrowserBlacklistBeaconSetup(); 28 void BrowserBlacklistBeaconSetup();
18 29
19 #endif // CHROME_BROWSER_CHROME_ELF_INIT_WIN_H_ 30 #endif // CHROME_BROWSER_CHROME_ELF_INIT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698