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

Unified Diff: chrome/install_static/install_util.cc

Issue 2282143002: [install_static] GetCollectStatsConsentImpl() not returning true early (Closed)
Patch Set: Update with latest trunk. Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/install_static/install_util.cc
diff --git a/chrome/install_static/install_util.cc b/chrome/install_static/install_util.cc
index bb8049b40af36a95cc37062561407e61ff05c1ec..c7b08493e506b64f310684fe018f6794c870334c 100644
--- a/chrome/install_static/install_util.cc
+++ b/chrome/install_static/install_util.cc
@@ -250,10 +250,9 @@ std::wstring GetChromeInstallRegistryPath() {
bool GetCollectStatsConsentImpl(const std::wstring& exe_path) {
bool enabled = true;
- bool controlled_by_policy = ReportingIsEnforcedByPolicy(&enabled);
- if (controlled_by_policy && !enabled)
- return false;
+ if (ReportingIsEnforcedByPolicy(&enabled))
+ return enabled;
bool system_install = IsSystemInstall(exe_path.c_str());
std::wstring app_guid;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698