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

Unified Diff: chrome/installer/gcapi/gcapi_reactivation.cc

Issue 9704022: This patch modifies some aspects of GCAPI in support of the new Chrome reactivation functions. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/installer/gcapi/gcapi_reactivation.h ('k') | chrome/installer/gcapi/gcapi_reactivation_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/gcapi/gcapi_reactivation.cc
===================================================================
--- chrome/installer/gcapi/gcapi_reactivation.cc (revision 125017)
+++ chrome/installer/gcapi/gcapi_reactivation.cc (working copy)
@@ -25,24 +25,12 @@
}
} // namespace
-bool HasBeenReactivatedByBrandCodes(
- const std::vector<std::wstring>& brand_codes) {
- bool success = false;
-
+bool HasBeenReactivated() {
RegKey reactivation_key(HKEY_CURRENT_USER,
GetReactivationHistoryKeyPath().c_str(),
KEY_QUERY_VALUE);
- if (reactivation_key.Valid()) {
- std::vector<std::wstring>::const_iterator brand_iter(brand_codes.begin());
- for (; brand_iter != brand_codes.end(); ++brand_iter) {
- if (reactivation_key.HasValue(brand_iter->c_str())) {
- success = true;
- break;
- }
- }
- }
- return success;
+ return reactivation_key.Valid();
}
bool SetReactivationBrandCode(const std::wstring& brand_code, int shell_mode) {
@@ -80,4 +68,5 @@
}
return success;
-}
+}
+
« no previous file with comments | « chrome/installer/gcapi/gcapi_reactivation.h ('k') | chrome/installer/gcapi/gcapi_reactivation_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698