diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-22 20:32:53 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-22 20:32:53 +0000 |
commit | b8f61dc7f14f6682d7895fa40222510907b144fe (patch) | |
tree | 94901cdd58cc8f14539181e13d1816320af68be9 /chrome/browser/first_run.h | |
parent | d667ecb27955399fa1d5002dd0b616771e451171 (diff) | |
download | chromium_src-b8f61dc7f14f6682d7895fa40222510907b144fe.zip chromium_src-b8f61dc7f14f6682d7895fa40222510907b144fe.tar.gz chromium_src-b8f61dc7f14f6682d7895fa40222510907b144fe.tar.bz2 |
TTF: Write tests for FirstRun.
BUG=none
TEST=FirstRunTest.*
Review URL: http://codereview.chromium.org/2862024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50513 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.h')
-rw-r--r-- | chrome/browser/first_run.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/first_run.h b/chrome/browser/first_run.h index 6994855..df5af39 100644 --- a/chrome/browser/first_run.h +++ b/chrome/browser/first_run.h @@ -115,6 +115,8 @@ class FirstRun { static bool SetShowWelcomePagePref(); private: + friend class FirstRunTest; + #if defined(OS_WIN) // Imports settings in a separate process. It is the implementation of the // public version. @@ -128,9 +130,14 @@ class FirstRun { #elif defined(OS_LINUX) static bool ImportBookmarks(const std::wstring& import_bookmarks_path); #endif + // Import bookmarks from an html file. The path to the file is provided in // the command line. static int ImportFromFile(Profile* profile, const CommandLine& cmdline); + + // Gives the full path to the sentinel file. The file might not exist. + static bool GetFirstRunSentinelFilePath(FilePath* path); + // This class is for scoping purposes. DISALLOW_IMPLICIT_CONSTRUCTORS(FirstRun); }; |