Index: chrome/browser/first_run/first_run.cc |
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc |
index ee7d583d66f39f3215a253656bbbd7baae6f6449..c57da39e46159038d2bc92ae04d4cf06edf70471 100644 |
--- a/chrome/browser/first_run/first_run.cc |
+++ b/chrome/browser/first_run/first_run.cc |
@@ -46,6 +46,7 @@ |
#include "chrome/browser/ui/global_error/global_error_service_factory.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
+#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
@@ -572,6 +573,15 @@ bool CreateSentinel() { |
return base::WriteFile(first_run_sentinel, "", 0) != -1; |
} |
+bool GetFirstRunSentinelFilePath(base::FilePath* path) { |
+ base::FilePath first_run_sentinel; |
grt (UTC plus 2)
2014/03/25 17:37:06
first_run_sentinel -> user_data_dir
msw
2014/03/25 23:33:13
Done.
|
+ if (!PathService::Get(chrome::DIR_USER_DATA, &first_run_sentinel)) |
+ return false; |
+ |
+ *path = first_run_sentinel.Append(chrome::kFirstRunSentinel); |
+ return true; |
+} |
+ |
// -- Platform-specific functions -- |
#if !defined(OS_LINUX) && !defined(OS_BSD) |