Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser_main.h" | 5 #include "chrome/browser/browser_main.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1574 FilePath path = | 1574 FilePath path = |
| 1575 parsed_command_line.GetSwitchValuePath(switches::kDebugPrint); | 1575 parsed_command_line.GetSwitchValuePath(switches::kDebugPrint); |
| 1576 printing::PrintedDocument::set_debug_dump_path(path); | 1576 printing::PrintedDocument::set_debug_dump_path(path); |
| 1577 } | 1577 } |
| 1578 #endif | 1578 #endif |
| 1579 | 1579 |
| 1580 HandleTestParameters(parsed_command_line); | 1580 HandleTestParameters(parsed_command_line); |
| 1581 RecordBreakpadStatusUMA(metrics); | 1581 RecordBreakpadStatusUMA(metrics); |
| 1582 about_flags::RecordUMAStatistics(user_prefs); | 1582 about_flags::RecordUMAStatistics(user_prefs); |
| 1583 | 1583 |
| 1584 UMA_HISTOGRAM_ENUMERATION( | |
|
cbentzel
2011/01/23 12:32:47
Could you put this in PrefetchFieldTrial so it's m
| |
| 1585 "Prerender.Sessions", | |
| 1586 parsed_command_line.HasSwitch(switches::kEnablePagePrerender), 2); | |
|
cbentzel
2011/01/23 12:32:47
Eventually I think this histogram will want more b
jar (doing other things)
2011/01/23 20:15:53
I think HasSwitch returns a boolean, but the HISTO
gavinp
2011/01/24 06:01:46
OK, I've now created an enumeration (which I put i
| |
| 1587 | |
| 1584 // Stat the directory with the inspector's files so that we can know if we | 1588 // Stat the directory with the inspector's files so that we can know if we |
| 1585 // should display the entry in the context menu or not. | 1589 // should display the entry in the context menu or not. |
| 1586 browser_process->CheckForInspectorFiles(); | 1590 browser_process->CheckForInspectorFiles(); |
| 1587 | 1591 |
| 1588 #if defined(OS_CHROMEOS) | 1592 #if defined(OS_CHROMEOS) |
| 1589 metrics->StartExternalMetrics(); | 1593 metrics->StartExternalMetrics(); |
| 1590 #endif | 1594 #endif |
| 1591 | 1595 |
| 1592 // Initialize extension event routers. Note that on Chrome OS, this will | 1596 // Initialize extension event routers. Note that on Chrome OS, this will |
| 1593 // not succeed if the user has not logged in yet, in which case the | 1597 // not succeed if the user has not logged in yet, in which case the |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1749 #if defined(OS_CHROMEOS) | 1753 #if defined(OS_CHROMEOS) |
| 1750 // To be precise, logout (browser shutdown) is not yet done, but the | 1754 // To be precise, logout (browser shutdown) is not yet done, but the |
| 1751 // remaining work is negligible, hence we say LogoutDone here. | 1755 // remaining work is negligible, hence we say LogoutDone here. |
| 1752 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", | 1756 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", |
| 1753 false); | 1757 false); |
| 1754 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); | 1758 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); |
| 1755 #endif | 1759 #endif |
| 1756 TRACE_EVENT_END("BrowserMain", 0, 0); | 1760 TRACE_EVENT_END("BrowserMain", 0, 0); |
| 1757 return result_code; | 1761 return result_code; |
| 1758 } | 1762 } |
| OLD | NEW |