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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_elf_init_win.h
diff --git a/chrome/browser/chrome_elf_init_win.h b/chrome/browser/chrome_elf_init_win.h
index d8787099a42b18125afaf2dd7f58bc914a81883e..3fd28bc74cbd35ccf491fc8be13bedf090093c2c 100644
--- a/chrome/browser/chrome_elf_init_win.h
+++ b/chrome/browser/chrome_elf_init_win.h
@@ -5,14 +5,25 @@
#ifndef CHROME_BROWSER_CHROME_ELF_INIT_WIN_H_
#define CHROME_BROWSER_CHROME_ELF_INIT_WIN_H_
+#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 <>
+
// Field trial name and full name for the blacklist disabled group.
extern const char kBrowserBlacklistTrialName[];
extern const char kBrowserBlacklistTrialDisabledGroupName[];
+// The number of failures that can occur on startup with the beacon enabled
+// before we give up and turn off the blacklist.
+extern const DWORD kBeaconAttempts;
+
// Prepare any initialization code for Chrome Elf's setup (This will generally
// only affect future runs since Chrome Elf is already setup by this point).
void InitializeChromeElf();
+// Helper function to grab from registry the number of times the startup has
+// failed before the blacklist was fully initialized. Will initialize the
+// registry value to zero if unfound.
+void GetBlacklistFailedCount(DWORD* failed_count);
+
// Set the required state for an enabled browser blacklist.
void BrowserBlacklistBeaconSetup();

Powered by Google App Engine
This is Rietveld 408576698