Index: chrome/browser/ui/startup/startup_browser_creator.cc |
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc |
index 38cc153f64b02b303c24e3c0c13b89602e550bb3..c6d18ae08aea84f314ca9388198b03fb63436726 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
@@ -21,6 +21,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/metrics/statistics_recorder.h" |
+#include "base/prefs/pref_registry_simple.h" |
#include "base/prefs/pref_service.h" |
#include "base/profiler/scoped_profile.h" |
#include "base/strings/string_number_conversions.h" |
@@ -431,6 +432,15 @@ void StartupBrowserCreator::ClearLaunchedProfilesForTesting() { |
profile_launch_observer.Get().Clear(); |
} |
+#if defined(OS_WIN) |
+// static |
+void StartupBrowserCreator::RegisterLocalStatePrefs( |
+ PrefRegistrySimple* registry) { |
+ registry->RegisterStringPref(prefs::kLastWelcomedOSVersion, std::string()); |
+ registry->RegisterBooleanPref(prefs::kWelcomePageOnOSUpgradeEnabled, true); |
+} |
+#endif |
+ |
// static |
std::vector<GURL> StartupBrowserCreator::GetURLsFromCommandLine( |
const base::CommandLine& command_line, |