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

Unified Diff: chrome/browser/component_updater/component_patcher_operation_out_of_process.cc

Issue 2750763003: Out-of-process file patcher: create mojo client with MakeUnique<> (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_patcher_operation_out_of_process.cc
diff --git a/chrome/browser/component_updater/component_patcher_operation_out_of_process.cc b/chrome/browser/component_updater/component_patcher_operation_out_of_process.cc
index 5f3b42b076edc6d7ac1bd7971b94190825bd7e26..9ba253d79af70021ffe129c5bd5cfc0062950ec0 100644
--- a/chrome/browser/component_updater/component_patcher_operation_out_of_process.cc
+++ b/chrome/browser/component_updater/component_patcher_operation_out_of_process.cc
@@ -61,12 +61,9 @@ void ChromeOutOfProcessPatcher::PatchOnIOThread(const std::string& operation,
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
DCHECK(!utility_process_mojo_client_);
- const base::string16 utility_process_name =
- l10n_util::GetStringUTF16(IDS_UTILITY_PROCESS_COMPONENT_PATCHER_NAME);
-
- utility_process_mojo_client_.reset(
- new content::UtilityProcessMojoClient<chrome::mojom::FilePatcher>(
- utility_process_name));
+ utility_process_mojo_client_ = base::MakeUnique<
+ content::UtilityProcessMojoClient<chrome::mojom::FilePatcher>>(
+ l10n_util::GetStringUTF16(IDS_UTILITY_PROCESS_COMPONENT_PATCHER_NAME));
utility_process_mojo_client_->set_error_callback(
base::Bind(&ChromeOutOfProcessPatcher::PatchDone, this, -1));
« 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