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

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

Issue 316963002: Move branding information out of google_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for Windows Created 6 years, 6 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
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/prefs/pref_service.h" 17 #include "base/prefs/pref_service.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
23 #include "chrome/browser/chrome_notification_types.h" 23 #include "chrome/browser/chrome_notification_types.h"
24 #include "chrome/browser/extensions/extension_service.h" 24 #include "chrome/browser/extensions/extension_service.h"
25 #include "chrome/browser/extensions/updater/extension_updater.h" 25 #include "chrome/browser/extensions/updater/extension_updater.h"
26 #include "chrome/browser/first_run/first_run_internal.h" 26 #include "chrome/browser/first_run/first_run_internal.h"
27 #include "chrome/browser/google/google_util.h" 27 #include "chrome/browser/google/google_brand.h"
28 #include "chrome/browser/importer/external_process_importer_host.h" 28 #include "chrome/browser/importer/external_process_importer_host.h"
29 #include "chrome/browser/importer/importer_list.h" 29 #include "chrome/browser/importer/importer_list.h"
30 #include "chrome/browser/importer/importer_progress_observer.h" 30 #include "chrome/browser/importer/importer_progress_observer.h"
31 #include "chrome/browser/importer/importer_uma.h" 31 #include "chrome/browser/importer/importer_uma.h"
32 #include "chrome/browser/importer/profile_writer.h" 32 #include "chrome/browser/importer/profile_writer.h"
33 #include "chrome/browser/prefs/chrome_pref_service_factory.h" 33 #include "chrome/browser/prefs/chrome_pref_service_factory.h"
34 #include "chrome/browser/profiles/profile.h" 34 #include "chrome/browser/profiles/profile.h"
35 #include "chrome/browser/profiles/profiles_state.h" 35 #include "chrome/browser/profiles/profiles_state.h"
36 #include "chrome/browser/search_engines/template_url_service.h" 36 #include "chrome/browser/search_engines/template_url_service.h"
37 #include "chrome/browser/search_engines/template_url_service_factory.h" 37 #include "chrome/browser/search_engines/template_url_service_factory.h"
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 base::FilePath first_run_sentinel; 559 base::FilePath first_run_sentinel;
560 return GetFirstRunSentinelFilePath(&first_run_sentinel) && 560 return GetFirstRunSentinelFilePath(&first_run_sentinel) &&
561 base::WriteFile(first_run_sentinel, "", 0) != -1; 561 base::WriteFile(first_run_sentinel, "", 0) != -1;
562 } 562 }
563 563
564 // -- Platform-specific functions -- 564 // -- Platform-specific functions --
565 565
566 #if !defined(OS_LINUX) && !defined(OS_BSD) 566 #if !defined(OS_LINUX) && !defined(OS_BSD)
567 bool IsOrganicFirstRun() { 567 bool IsOrganicFirstRun() {
568 std::string brand; 568 std::string brand;
569 google_util::GetBrand(&brand); 569 google_brand::GetBrand(&brand);
570 return google_util::IsOrganicFirstRun(brand); 570 return google_brand::IsOrganicFirstRun(brand);
571 } 571 }
572 #endif 572 #endif
573 573
574 } // namespace internal 574 } // namespace internal
575 575
576 MasterPrefs::MasterPrefs() 576 MasterPrefs::MasterPrefs()
577 : ping_delay(0), 577 : ping_delay(0),
578 homepage_defined(false), 578 homepage_defined(false),
579 do_import_items(0), 579 do_import_items(0),
580 dont_import_items(0), 580 dont_import_items(0),
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 SetShouldDoPersonalDataManagerFirstRun(); 806 SetShouldDoPersonalDataManagerFirstRun();
807 807
808 internal::DoPostImportPlatformSpecificTasks(profile); 808 internal::DoPostImportPlatformSpecificTasks(profile);
809 } 809 }
810 810
811 uint16 auto_import_state() { 811 uint16 auto_import_state() {
812 return g_auto_import_state; 812 return g_auto_import_state;
813 } 813 }
814 814
815 } // namespace first_run 815 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/manifest_fetch_data.cc ('k') | chrome/browser/google/google_brand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698