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

Unified Diff: chrome/browser/chrome_browser_main_win.cc

Issue 20483002: Merge 3 different ways of obtaining first run state into a single one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
Index: chrome/browser/chrome_browser_main_win.cc
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index a2e3008e9096472a10846400a1f4b47b738aca10..456beded5750edcaa06aa852b98de9b19386c8eb 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -211,7 +211,7 @@ int ChromeBrowserMainPartsWin::PreCreateThreads() {
void ChromeBrowserMainPartsWin::PostMainMessageLoopRun() {
// Log the search engine chosen on first run. Do this at shutdown, after any
// changes are made from the first run bubble link, etc.
- if (do_first_run_tasks() && profile() && !profile()->IsOffTheRecord()) {
+ if (is_first_run() && profile() && !profile()->IsOffTheRecord()) {
TemplateURLService* url_service =
TemplateURLServiceFactory::GetForProfile(profile());
const TemplateURL* default_search_engine =

Powered by Google App Engine
This is Rietveld 408576698