summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-30 22:22:58 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-30 22:22:58 +0000
commitda71fd2d44c8f5367de6b921948d9e19bdf58b8d (patch)
treedb9b64675ef26caf55dfd5269f0648ca7baaea61 /chrome/browser
parent51fdaa72c37fb7915f8ea13349fa4f80fd11d84d (diff)
downloadchromium_src-da71fd2d44c8f5367de6b921948d9e19bdf58b8d.zip
chromium_src-da71fd2d44c8f5367de6b921948d9e19bdf58b8d.tar.gz
chromium_src-da71fd2d44c8f5367de6b921948d9e19bdf58b8d.tar.bz2
FixIt: Remove first run dead code.
Review URL: http://codereview.chromium.org/151089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/first_run.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc
index 7f8538f..10281c0 100644
--- a/chrome/browser/first_run.cc
+++ b/chrome/browser/first_run.cc
@@ -58,19 +58,9 @@ bool GetFirstRunSentinelFilePath(FilePath* path) {
// TODO(port): Mac should share this code.
#if !defined(OS_MACOSX)
bool FirstRun::IsChromeFirstRun() {
- // A troolean, 0 means not yet set, 1 means set to true, 2 set to false.
- int first_run = 0;
- if (first_run != 0)
- return first_run == 1;
-
FilePath first_run_sentinel;
- if (!GetFirstRunSentinelFilePath(&first_run_sentinel) ||
- file_util::PathExists(first_run_sentinel)) {
- first_run = 2;
- return false;
- }
- first_run = 1;
- return true;
+ return (GetFirstRunSentinelFilePath(&first_run_sentinel) &&
+ !file_util::PathExists(first_run_sentinel));
}
#endif