Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3723)

Unified Diff: chrome/browser/browser.h

Issue 255025: Set new homepage preferences only if there is no existing value. (Closed)
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.h
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index 8ec55578e744fb0ac3b33ab94a1e2e8b243a7f74..8e42694eb545d494f241c479c5a45bf948a090a7 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -408,8 +408,10 @@ class Browser : public TabStripModelDelegate,
// Sets the value of homepage related prefs to new values. Since we do not
// want to change these values for existing users, we can not change the
- // default values under RegisterUserPrefs. This method gets called during
- // First Run.
+ // default values under RegisterUserPrefs. Also if user already has an
+ // existing profile we do not want to override those preferences so we only
+ // set new values if they have not been set already. This method gets called
+ // during First Run.
static void SetNewHomePagePrefs(PrefService* prefs);
static void RegisterPrefs(PrefService* prefs);
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698