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

Unified Diff: chrome/browser/image_decoder.cc

Issue 1062873003: Give names to all utility processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/image_decoder.cc
diff --git a/chrome/browser/image_decoder.cc b/chrome/browser/image_decoder.cc
index 9e21662088f5ab09a5cd61b71057da235bb6fe24..b0b9ce88010db9e28c7ea842d9c9204b74bc671b 100644
--- a/chrome/browser/image_decoder.cc
+++ b/chrome/browser/image_decoder.cc
@@ -7,8 +7,10 @@
#include "base/bind.h"
#include "chrome/browser/browser_process.h"
#include "chrome/common/chrome_utility_messages.h"
+#include "chrome/grit/generated_resources.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/utility_process_host.h"
+#include "ui/base/l10n/l10n_util.h"
using content::BrowserThread;
using content::UtilityProcessHost;
@@ -127,6 +129,8 @@ void ImageDecoder::StartBatchMode() {
utility_process_host_ =
UtilityProcessHost::Create(this, base::MessageLoopProxy::current().get())
->AsWeakPtr();
+ utility_process_host_->SetName(l10n_util::GetStringUTF16(
+ IDS_UTILITY_PROCESS_IMAGE_DECODER_NAME));
if (!utility_process_host_->StartBatchMode()) {
utility_process_host_.reset();
return;

Powered by Google App Engine
This is Rietveld 408576698