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

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

Issue 10690060: startup: Put it in chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('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) 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 scoped_refptr<ImporterHost> importer_host; 543 scoped_refptr<ImporterHost> importer_host;
544 importer_host = new ImporterHost; 544 importer_host = new ImporterHost;
545 545
546 internal::AutoImportPlatformCommon(importer_host, profile, homepage_defined, 546 internal::AutoImportPlatformCommon(importer_host, profile, homepage_defined,
547 import_items, dont_import_items, 547 import_items, dont_import_items,
548 make_chrome_default); 548 make_chrome_default);
549 549
550 process_singleton->Unlock(); 550 process_singleton->Unlock();
551 CreateSentinel(); 551 CreateSentinel();
552 #endif // !defined(USE_AURA) 552 #endif // !defined(USE_AURA)
553 browser::ShowFirstRunDefaultBrowserPrompt(profile); 553 chrome::ShowFirstRunDefaultBrowserPrompt(profile);
554 } 554 }
555 555
556 int ImportNow(Profile* profile, const CommandLine& cmdline) { 556 int ImportNow(Profile* profile, const CommandLine& cmdline) {
557 int return_code = internal::ImportBookmarkFromFileIfNeeded(profile, cmdline); 557 int return_code = internal::ImportBookmarkFromFileIfNeeded(profile, cmdline);
558 #if !defined(USE_AURA) 558 #if !defined(USE_AURA)
559 if (cmdline.HasSwitch(switches::kImport)) { 559 if (cmdline.HasSwitch(switches::kImport)) {
560 return_code = ImportFromBrowser(profile, cmdline); 560 return_code = ImportFromBrowser(profile, cmdline);
561 } 561 }
562 #endif 562 #endif
563 return return_code; 563 return return_code;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 return false; 604 return false;
605 605
606 internal::SetShowWelcomePagePrefIfNeeded(install_prefs.get()); 606 internal::SetShowWelcomePagePrefIfNeeded(install_prefs.get());
607 internal::SetImportPreferencesAndLaunchImport(out_prefs, install_prefs.get()); 607 internal::SetImportPreferencesAndLaunchImport(out_prefs, install_prefs.get());
608 internal::SetDefaultBrowser(install_prefs.get()); 608 internal::SetDefaultBrowser(install_prefs.get());
609 609
610 return false; 610 return false;
611 } 611 }
612 612
613 } // namespace first_run 613 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698