| 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 #if defined(TOOLKIT_GTK) | 7 #if defined(TOOLKIT_GTK) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 | 1323 |
| 1324 // TODO(stevenjb): Move WIN and MACOSX specific code to appropriate Parts. | 1324 // TODO(stevenjb): Move WIN and MACOSX specific code to appropriate Parts. |
| 1325 // (requires supporting early exit). | 1325 // (requires supporting early exit). |
| 1326 PostProfileInit(); | 1326 PostProfileInit(); |
| 1327 | 1327 |
| 1328 // Retrieve cached GL strings from local state and use them for GPU | 1328 // Retrieve cached GL strings from local state and use them for GPU |
| 1329 // blacklist decisions. | 1329 // blacklist decisions. |
| 1330 if (g_browser_process->gl_string_manager()) | 1330 if (g_browser_process->gl_string_manager()) |
| 1331 g_browser_process->gl_string_manager()->Initialize(); | 1331 g_browser_process->gl_string_manager()->Initialize(); |
| 1332 | 1332 |
| 1333 // Create an instance of GpuModeManager to watch gpu mode pref change. |
| 1334 g_browser_process->gpu_mode_manager(); |
| 1335 |
| 1333 #if !defined(OS_ANDROID) | 1336 #if !defined(OS_ANDROID) |
| 1334 // Show the First Run UI if this is the first time Chrome has been run on | 1337 // Show the First Run UI if this is the first time Chrome has been run on |
| 1335 // this computer, or we're being compelled to do so by a command line flag. | 1338 // this computer, or we're being compelled to do so by a command line flag. |
| 1336 // Note that this be done _after_ the PrefService is initialized and all | 1339 // Note that this be done _after_ the PrefService is initialized and all |
| 1337 // preferences are registered, since some of the code that the importer | 1340 // preferences are registered, since some of the code that the importer |
| 1338 // touches reads preferences. | 1341 // touches reads preferences. |
| 1339 if (do_first_run_tasks_) { | 1342 if (do_first_run_tasks_) { |
| 1340 first_run::AutoImport(profile_, | 1343 first_run::AutoImport(profile_, |
| 1341 master_prefs_->homepage_defined, | 1344 master_prefs_->homepage_defined, |
| 1342 master_prefs_->do_import_items, | 1345 master_prefs_->do_import_items, |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1811 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1814 if (base::win::GetVersion() <= base::win::VERSION_XP) |
| 1812 uma_name += "_XP"; | 1815 uma_name += "_XP"; |
| 1813 | 1816 |
| 1814 uma_name += "_PreRead_"; | 1817 uma_name += "_PreRead_"; |
| 1815 uma_name += pre_read_percentage; | 1818 uma_name += pre_read_percentage; |
| 1816 AddPreReadHistogramTime(uma_name.c_str(), time); | 1819 AddPreReadHistogramTime(uma_name.c_str(), time); |
| 1817 } | 1820 } |
| 1818 #endif | 1821 #endif |
| 1819 #endif | 1822 #endif |
| 1820 } | 1823 } |
| OLD | NEW |