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

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

Issue 6340013: Add histogram to track prerender sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698