summaryrefslogtreecommitdiffstats
path: root/chrome/installer/gcapi/gcapi.h
diff options
context:
space:
mode:
authorgwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 23:39:07 +0000
committergwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 23:39:07 +0000
commit4eb868df77e40a01c9e560017099a3d6319076ee (patch)
treeb387f0ddf6313f19bc594b82cf6abf1bbb44e779 /chrome/installer/gcapi/gcapi.h
parent63ada1fcf8019142460a52dd88312f6783f591e5 (diff)
downloadchromium_src-4eb868df77e40a01c9e560017099a3d6319076ee.zip
chromium_src-4eb868df77e40a01c9e560017099a3d6319076ee.tar.gz
chromium_src-4eb868df77e40a01c9e560017099a3d6319076ee.tar.bz2
Adds the 6-month flag functionality back into the criteria checker,
along with adding support for a boolean parameter that indicates whether the flag should be set or not. BUG=6802 Review URL: http://codereview.chromium.org/18490 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/gcapi/gcapi.h')
-rwxr-xr-xchrome/installer/gcapi/gcapi.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/installer/gcapi/gcapi.h b/chrome/installer/gcapi/gcapi.h
index 7848e40..6ee4557 100755
--- a/chrome/installer/gcapi/gcapi.h
+++ b/chrome/installer/gcapi/gcapi.h
@@ -21,7 +21,12 @@ extern "C" {
// This function returns TRUE if Google Chrome should be offered.
// If the return is FALSE, the reasons DWORD explains why. If you don't care
// for the reason, you can pass NULL for reasons.
-DLLEXPORT BOOL __stdcall GoogleChromeCompatibilityCheck(DWORD *reasons);
+// set_flag indicates whether a flag should be set indicating that Chrome was
+// offered within the last six months; if passed FALSE, this method will not
+// set the flag even if Chrome can be offered. If passed TRUE, this method
+// will set the flag only if Chrome can be offered.
+DLLEXPORT BOOL __stdcall GoogleChromeCompatibilityCheck(BOOL set_flag,
+ DWORD *reasons);
// This function launches Google Chrome after a successful install. Make
// sure COM library is NOT initalized before you call this function (so if
@@ -29,7 +34,7 @@ DLLEXPORT BOOL __stdcall GoogleChromeCompatibilityCheck(DWORD *reasons);
DLLEXPORT BOOL __stdcall LaunchGoogleChrome();
// Funtion pointer type declarations to use with GetProcAddress.
-typedef BOOL (__stdcall * GCCC_CompatibilityCheck)(DWORD *);
+typedef BOOL (__stdcall * GCCC_CompatibilityCheck)(BOOL, DWORD *);
typedef BOOL (__stdcall * GCCC_LaunchGC)(HANDLE *);
} // extern "C"