OLD | NEW |
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/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_browser_main.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 // affected by experiment flags (--touch-optimized-ui in particular). | 906 // affected by experiment flags (--touch-optimized-ui in particular). |
907 // On ChromeOS system level flags are applied from the device settings from | 907 // On ChromeOS system level flags are applied from the device settings from |
908 // the session manager. | 908 // the session manager. |
909 { | 909 { |
910 TRACE_EVENT0("startup", | 910 TRACE_EVENT0("startup", |
911 "ChromeBrowserMainParts::PreCreateThreadsImpl:ConvertFlags"); | 911 "ChromeBrowserMainParts::PreCreateThreadsImpl:ConvertFlags"); |
912 flags_ui::PrefServiceFlagsStorage flags_storage_( | 912 flags_ui::PrefServiceFlagsStorage flags_storage_( |
913 g_browser_process->local_state()); | 913 g_browser_process->local_state()); |
914 about_flags::ConvertFlagsToSwitches(&flags_storage_, | 914 about_flags::ConvertFlagsToSwitches(&flags_storage_, |
915 base::CommandLine::ForCurrentProcess(), | 915 base::CommandLine::ForCurrentProcess(), |
916 about_flags::kAddSentinels); | 916 flags_ui::kAddSentinels); |
917 } | 917 } |
918 #endif // !defined(OS_CHROMEOS) | 918 #endif // !defined(OS_CHROMEOS) |
919 | 919 |
920 #if defined(OS_WIN) | 920 #if defined(OS_WIN) |
921 // This is needed to enable ETW exporting when requested in about:flags. | 921 // This is needed to enable ETW exporting when requested in about:flags. |
922 // Normally, we enable it in ContentMainRunnerImpl::Initialize when the flag | 922 // Normally, we enable it in ContentMainRunnerImpl::Initialize when the flag |
923 // is present on the command line but flags in about:flags are converted only | 923 // is present on the command line but flags in about:flags are converted only |
924 // after this function runs. Note that this starts exporting later which | 924 // after this function runs. Note that this starts exporting later which |
925 // affects tracing the browser startup. Also, this is only relevant for the | 925 // affects tracing the browser startup. Also, this is only relevant for the |
926 // browser process, as other processes will get all the flags on their command | 926 // browser process, as other processes will get all the flags on their command |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1850 chromeos::CrosSettings::Shutdown(); | 1850 chromeos::CrosSettings::Shutdown(); |
1851 #endif // defined(OS_CHROMEOS) | 1851 #endif // defined(OS_CHROMEOS) |
1852 #endif // defined(OS_ANDROID) | 1852 #endif // defined(OS_ANDROID) |
1853 } | 1853 } |
1854 | 1854 |
1855 // Public members: | 1855 // Public members: |
1856 | 1856 |
1857 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { | 1857 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { |
1858 chrome_extra_parts_.push_back(parts); | 1858 chrome_extra_parts_.push_back(parts); |
1859 } | 1859 } |
OLD | NEW |