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

Unified Diff: chrome/installer/setup/install.cc

Issue 208393020: Fix the new First Run sentinel file path determination. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. Created 6 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
Index: chrome/installer/setup/install.cc
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc
index 078a9ac7ff60c2cdc9ba49783fe45547b16832f8..eb178b106f5c6052b8b232a6fdba4c75cc0c03cc 100644
--- a/chrome/installer/setup/install.cc
+++ b/chrome/installer/setup/install.cc
@@ -677,8 +677,9 @@ void HandleActiveSetupForBrowser(const base::FilePath& installation_root,
// run and this could otherwise re-install shortcuts for users that have
// already deleted them in the past).
base::FilePath first_run_sentinel;
- InstallUtil::GetSentinelFilePath(
- chrome::kFirstRunSentinel, chrome.distribution(), &first_run_sentinel);
+ if (!PathService::Get(chrome::DIR_USER_DATA, &first_run_sentinel))
grt (UTC plus 2) 2014/03/25 17:37:06 i think you mean: if (PathService::Get(...))
msw 2014/03/25 23:33:13 Good catch and recommendation. I've reorganized an
+ first_run_sentinel = first_run_sentinel.Append(chrome::kFirstRunSentinel);
+
// Decide whether to create the shortcuts or simply replace existing
// shortcuts; if the decision is to create them, only shortcuts whose matching
// all-users shortcut isn't present on the system will be created.

Powered by Google App Engine
This is Rietveld 408576698