summaryrefslogtreecommitdiffstats
path: root/chrome/browser/utility_process_host.cc
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-12 02:59:07 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-12 02:59:07 +0000
commit0c274c201e057cb69cd8614ff8e5820182a1a73c (patch)
tree8ed92a591fbdde160bd5c13405becdee7e78365e /chrome/browser/utility_process_host.cc
parent16b6b41d73f6b1116d3e600e6226764e99615760 (diff)
downloadchromium_src-0c274c201e057cb69cd8614ff8e5820182a1a73c.zip
chromium_src-0c274c201e057cb69cd8614ff8e5820182a1a73c.tar.gz
chromium_src-0c274c201e057cb69cd8614ff8e5820182a1a73c.tar.bz2
Turn backend tip service on by default.
BUG= none. TEST= New NTP should come up with a default title in Tips and Suggestions box, then be loaded with actual data from popgadget. Review URL: http://codereview.chromium.org/149255 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/utility_process_host.cc')
-rw-r--r--chrome/browser/utility_process_host.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/utility_process_host.cc b/chrome/browser/utility_process_host.cc
index 84f506a..ae82e70 100644
--- a/chrome/browser/utility_process_host.cc
+++ b/chrome/browser/utility_process_host.cc
@@ -9,6 +9,7 @@
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/process_util.h"
+#include "base/string_util.h"
#include "base/task.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/render_messages.h"
@@ -59,6 +60,10 @@ std::wstring UtilityProcessHost::GetUtilityProcessCmd() {
}
bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) {
+ // Name must be set or metrics_service will crash in any test which
+ // launches a UtilityProcessHost.
+ set_name(L"utility_process_host_" + ASCIIToWide(channel_id()));
+
if (!CreateChannel())
return false;