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

Side by Side Diff: chrome/browser/first_run/first_run_win.cc

Issue 10702097: Adds browser preferences to configure first-run flow on Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed owner's remarks. Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/first_run/first_run.h" 5 #include "chrome/browser/first_run/first_run.h"
6 6
7 #include <shlobj.h> 7 #include <shlobj.h>
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/extensions/updater/extension_updater.h" 22 #include "chrome/browser/extensions/updater/extension_updater.h"
23 #include "chrome/browser/first_run/first_run_import_observer.h" 23 #include "chrome/browser/first_run/first_run_import_observer.h"
24 #include "chrome/browser/first_run/first_run_internal.h" 24 #include "chrome/browser/first_run/first_run_internal.h"
25 #include "chrome/browser/importer/importer_host.h" 25 #include "chrome/browser/importer/importer_host.h"
26 #include "chrome/browser/importer/importer_list.h" 26 #include "chrome/browser/importer/importer_list.h"
27 #include "chrome/browser/importer/importer_progress_dialog.h" 27 #include "chrome/browser/importer/importer_progress_dialog.h"
28 #include "chrome/browser/prefs/pref_service.h" 28 #include "chrome/browser/prefs/pref_service.h"
29 #include "chrome/browser/process_singleton.h" 29 #include "chrome/browser/process_singleton.h"
30 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/shell_integration.h" 31 #include "chrome/browser/shell_integration.h"
32 #include "chrome/browser/ui/startup/default_browser_prompt.h"
33 #include "chrome/common/chrome_notification_types.h" 32 #include "chrome/common/chrome_notification_types.h"
34 #include "chrome/common/chrome_paths.h" 33 #include "chrome/common/chrome_paths.h"
35 #include "chrome/common/chrome_result_codes.h" 34 #include "chrome/common/chrome_result_codes.h"
36 #include "chrome/common/chrome_switches.h" 35 #include "chrome/common/chrome_switches.h"
37 #include "chrome/common/pref_names.h" 36 #include "chrome/common/pref_names.h"
38 #include "chrome/common/worker_thread_ticker.h" 37 #include "chrome/common/worker_thread_ticker.h"
39 #include "chrome/installer/util/browser_distribution.h" 38 #include "chrome/installer/util/browser_distribution.h"
40 #include "chrome/installer/util/google_update_settings.h" 39 #include "chrome/installer/util/google_update_settings.h"
41 #include "chrome/installer/util/install_util.h" 40 #include "chrome/installer/util/install_util.h"
42 #include "chrome/installer/util/master_preferences.h" 41 #include "chrome/installer/util/master_preferences.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 scoped_refptr<ImporterHost> importer_host; 546 scoped_refptr<ImporterHost> importer_host;
548 importer_host = new ImporterHost; 547 importer_host = new ImporterHost;
549 548
550 internal::AutoImportPlatformCommon(importer_host, profile, homepage_defined, 549 internal::AutoImportPlatformCommon(importer_host, profile, homepage_defined,
551 import_items, dont_import_items, 550 import_items, dont_import_items,
552 make_chrome_default); 551 make_chrome_default);
553 552
554 process_singleton->Unlock(); 553 process_singleton->Unlock();
555 CreateSentinel(); 554 CreateSentinel();
556 #endif // !defined(USE_AURA) 555 #endif // !defined(USE_AURA)
557 chrome::ShowFirstRunDefaultBrowserPrompt(profile);
558 } 556 }
559 557
560 int ImportNow(Profile* profile, const CommandLine& cmdline) { 558 int ImportNow(Profile* profile, const CommandLine& cmdline) {
561 int return_code = internal::ImportBookmarkFromFileIfNeeded(profile, cmdline); 559 int return_code = internal::ImportBookmarkFromFileIfNeeded(profile, cmdline);
562 #if !defined(USE_AURA) 560 #if !defined(USE_AURA)
563 if (cmdline.HasSwitch(switches::kImport)) { 561 if (cmdline.HasSwitch(switches::kImport)) {
564 return_code = ImportFromBrowser(profile, cmdline); 562 return_code = ImportFromBrowser(profile, cmdline);
565 } 563 }
566 #endif 564 #endif
567 return return_code; 565 return return_code;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 return false; 610 return false;
613 611
614 internal::SetShowWelcomePagePrefIfNeeded(install_prefs.get()); 612 internal::SetShowWelcomePagePrefIfNeeded(install_prefs.get());
615 internal::SetImportPreferencesAndLaunchImport(out_prefs, install_prefs.get()); 613 internal::SetImportPreferencesAndLaunchImport(out_prefs, install_prefs.get());
616 internal::SetDefaultBrowser(install_prefs.get()); 614 internal::SetDefaultBrowser(install_prefs.get());
617 615
618 return false; 616 return false;
619 } 617 }
620 618
621 } // namespace first_run 619 } // namespace first_run
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698