summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_process_finder_win.cc
diff options
context:
space:
mode:
authorkoz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-03 08:16:42 +0000
committerkoz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-03 08:16:42 +0000
commit9c34aa24e1dd9d05b01711d746c99184c935eef8 (patch)
tree9098851439326f23c3dcb8cd5ccde7241a17b92f /chrome/browser/chrome_process_finder_win.cc
parent9ff54f9eca5d8fd77ee0392d9fe173c62353a058 (diff)
downloadchromium_src-9c34aa24e1dd9d05b01711d746c99184c935eef8.zip
chromium_src-9c34aa24e1dd9d05b01711d746c99184c935eef8.tar.gz
chromium_src-9c34aa24e1dd9d05b01711d746c99184c935eef8.tar.bz2
[win] Differentiate between fast and non-fast startup path UMAs.
On windows we can complete the ProcessSingleton rendesvouz before we load chrome.dll and proceed with the rest of chrome startup. If we do it is known as a fast start. This change adds fast versions of the UMAs Startup.ShowAppListWarmStart and Startup.WarmStartTimeFromRemoteProcessStart so we can compare the timings of the fast and non-fast cases. Review URL: https://chromiumcodereview.appspot.com/18150005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_process_finder_win.cc')
-rw-r--r--chrome/browser/chrome_process_finder_win.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/chrome_process_finder_win.cc b/chrome/browser/chrome_process_finder_win.cc
index c7a4985..34f6761 100644
--- a/chrome/browser/chrome_process_finder_win.cc
+++ b/chrome/browser/chrome_process_finder_win.cc
@@ -93,7 +93,7 @@ std::string EscapeQueryParamValue(const std::string& text, bool use_plus) {
// END COPY from net/base/escape.cc
-}
+} // namespace
namespace chrome {
@@ -102,7 +102,8 @@ HWND FindRunningChromeWindow(const base::FilePath& user_data_dir) {
user_data_dir.value().c_str());
}
-NotifyChromeResult AttemptToNotifyRunningChrome(HWND remote_window) {
+NotifyChromeResult AttemptToNotifyRunningChrome(HWND remote_window,
+ bool fast_start) {
DCHECK(remote_window);
static const char kSearchUrl[] =
"http://www.google.com/search?q=%s&sourceid=chrome&ie=UTF-8";
@@ -150,6 +151,9 @@ NotifyChromeResult AttemptToNotifyRunningChrome(HWND remote_window) {
base::Int64ToString(
base::CurrentProcessInfo::CreationTime()->ToInternalValue()));
+ if (fast_start)
+ command_line.AppendSwitch(switches::kFastStart);
+
// Send the command line to the remote chrome window.
// Format is "START\0<<<current directory>>>\0<<<commandline>>>".
std::wstring to_send(L"START\0", 6); // want the NULL in the string.