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

Side by Side Diff: chrome/browser/browser_main.cc

Issue 3343001: Merge r58176: Set default browser after import (OS Win).... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: '' Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/first_run.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/browser_main.h" 5 #include "chrome/browser/browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 // touches reads preferences. 1072 // touches reads preferences.
1073 if (is_first_run) { 1073 if (is_first_run) {
1074 if (!first_run_ui_bypass) { 1074 if (!first_run_ui_bypass) {
1075 #if defined(OS_WIN) 1075 #if defined(OS_WIN)
1076 FirstRun::AutoImport(profile, 1076 FirstRun::AutoImport(profile,
1077 master_prefs.homepage_defined, 1077 master_prefs.homepage_defined,
1078 master_prefs.do_import_items, 1078 master_prefs.do_import_items,
1079 master_prefs.dont_import_items, 1079 master_prefs.dont_import_items,
1080 master_prefs.run_search_engine_experiment, 1080 master_prefs.run_search_engine_experiment,
1081 master_prefs.randomize_search_engine_experiment, 1081 master_prefs.randomize_search_engine_experiment,
1082 master_prefs.make_chrome_default,
1082 &process_singleton); 1083 &process_singleton);
1083 #else 1084 #else
1084 if (!OpenFirstRunDialog(profile, 1085 if (!OpenFirstRunDialog(profile,
1085 master_prefs.homepage_defined, 1086 master_prefs.homepage_defined,
1086 master_prefs.do_import_items, 1087 master_prefs.do_import_items,
1087 master_prefs.dont_import_items, 1088 master_prefs.dont_import_items,
1088 master_prefs.run_search_engine_experiment, 1089 master_prefs.run_search_engine_experiment,
1089 master_prefs.randomize_search_engine_experiment, 1090 master_prefs.randomize_search_engine_experiment,
1090 &process_singleton)) { 1091 &process_singleton)) {
1091 return ResultCodes::NORMAL_EXIT; 1092 return ResultCodes::NORMAL_EXIT;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 1313
1313 metrics->Stop(); 1314 metrics->Stop();
1314 1315
1315 // browser_shutdown takes care of deleting browser_process, so we need to 1316 // browser_shutdown takes care of deleting browser_process, so we need to
1316 // release it. 1317 // release it.
1317 ignore_result(browser_process.release()); 1318 ignore_result(browser_process.release());
1318 browser_shutdown::Shutdown(); 1319 browser_shutdown::Shutdown();
1319 1320
1320 return result_code; 1321 return result_code;
1321 } 1322 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/first_run.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698