summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 22:57:43 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 22:57:43 +0000
commit65f77adcaf52868c720a73ba3ca08dee7899d707 (patch)
treeb52ca0501b37438dd211388b58c066b73f4a2fda /chrome/browser/first_run.cc
parentc284946e12e85a287e5095bde26efa72e84bb56b (diff)
downloadchromium_src-65f77adcaf52868c720a73ba3ca08dee7899d707.zip
chromium_src-65f77adcaf52868c720a73ba3ca08dee7899d707.tar.gz
chromium_src-65f77adcaf52868c720a73ba3ca08dee7899d707.tar.bz2
linux: Implement a first run dialog.
BUG=11971 Review URL: http://codereview.chromium.org/115722 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.cc')
-rw-r--r--chrome/browser/first_run.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc
index 15cc575..540aa61 100644
--- a/chrome/browser/first_run.cc
+++ b/chrome/browser/first_run.cc
@@ -30,13 +30,12 @@ const char kSentinelFile[] = "First Run Alpha";
// Gives the full path to the sentinel file. The file might not exist.
bool GetFirstRunSentinelFilePath(FilePath* path) {
- FilePath exe_path;
- if (!PathService::Get(base::DIR_EXE, &exe_path))
- return false;
-
FilePath first_run_sentinel;
#if defined(OS_WIN)
+ FilePath exe_path;
+ if (!PathService::Get(base::DIR_EXE, &exe_path))
+ return false;
if (InstallUtil::IsPerUserInstall(exe_path.value().c_str())) {
first_run_sentinel = exe_path;
} else {
@@ -44,7 +43,7 @@ bool GetFirstRunSentinelFilePath(FilePath* path) {
return false;
}
#else
- // TODO(port): logic as above. Not important for our "First Run Dev" file.
+ // TODO(port): logic as above. Not important for our "First Run Alpha" file.
if (!PathService::Get(chrome::DIR_USER_DATA, &first_run_sentinel))
return false;
#endif