Commit 26b36a89 authored by Simon Que's avatar Simon Que Committed by Commit Bot

base::MakeUnique -> std::make_unique in feedback_private

BUG=755727
R=afakhry@chromium.org

Change-Id: Id0acf812bf46aa3dd9b4e5ffb62f34a4b179a782
Reviewed-on: https://chromium-review.googlesource.com/656044
Commit-Queue: Simon Que <sque@chromium.org>
Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#501159}
parent da8af67c
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
#include "chrome/browser/extensions/api/feedback_private/chrome_feedback_private_delegate.h" #include "chrome/browser/extensions/api/feedback_private/chrome_feedback_private_delegate.h"
#include <memory>
#include <string> #include <string>
#include "base/memory/ptr_util.h"
#include "base/values.h" #include "base/values.h"
#include "chrome/browser/browser_process.h" #include "chrome/browser/browser_process.h"
#include "chrome/browser/feedback/feedback_uploader_chrome.h" #include "chrome/browser/feedback/feedback_uploader_chrome.h"
...@@ -41,7 +41,7 @@ ChromeFeedbackPrivateDelegate::GetStrings( ...@@ -41,7 +41,7 @@ ChromeFeedbackPrivateDelegate::GetStrings(
content::BrowserContext* browser_context, content::BrowserContext* browser_context,
bool from_crash) const { bool from_crash) const {
std::unique_ptr<base::DictionaryValue> dict = std::unique_ptr<base::DictionaryValue> dict =
base::MakeUnique<base::DictionaryValue>(); std::make_unique<base::DictionaryValue>();
#define SET_STRING(id, idr) dict->SetString(id, l10n_util::GetStringUTF16(idr)) #define SET_STRING(id, idr) dict->SetString(id, l10n_util::GetStringUTF16(idr))
SET_STRING("page-title", from_crash SET_STRING("page-title", from_crash
...@@ -115,42 +115,42 @@ ChromeFeedbackPrivateDelegate::CreateSingleLogSource( ...@@ -115,42 +115,42 @@ ChromeFeedbackPrivateDelegate::CreateSingleLogSource(
switch (source_type) { switch (source_type) {
// These map to SupportedLogFileSources. // These map to SupportedLogFileSources.
case api::feedback_private::LOG_SOURCE_MESSAGES: case api::feedback_private::LOG_SOURCE_MESSAGES:
return base::MakeUnique<system_logs::SingleLogFileLogSource>( return std::make_unique<system_logs::SingleLogFileLogSource>(
SupportedLogFileSource::kMessages); SupportedLogFileSource::kMessages);
case api::feedback_private::LOG_SOURCE_UILATEST: case api::feedback_private::LOG_SOURCE_UILATEST:
return base::MakeUnique<system_logs::SingleLogFileLogSource>( return std::make_unique<system_logs::SingleLogFileLogSource>(
SupportedLogFileSource::kUiLatest); SupportedLogFileSource::kUiLatest);
case api::feedback_private::LOG_SOURCE_ATRUSLOG: case api::feedback_private::LOG_SOURCE_ATRUSLOG:
return base::MakeUnique<system_logs::SingleLogFileLogSource>( return std::make_unique<system_logs::SingleLogFileLogSource>(
SupportedLogFileSource::kAtrusLog); SupportedLogFileSource::kAtrusLog);
case api::feedback_private::LOG_SOURCE_NETLOG: case api::feedback_private::LOG_SOURCE_NETLOG:
return base::MakeUnique<system_logs::SingleLogFileLogSource>( return std::make_unique<system_logs::SingleLogFileLogSource>(
SupportedLogFileSource::kNetLog); SupportedLogFileSource::kNetLog);
case api::feedback_private::LOG_SOURCE_EVENTLOG: case api::feedback_private::LOG_SOURCE_EVENTLOG:
return base::MakeUnique<system_logs::SingleLogFileLogSource>( return std::make_unique<system_logs::SingleLogFileLogSource>(
SupportedLogFileSource::kEventLog); SupportedLogFileSource::kEventLog);
case api::feedback_private::LOG_SOURCE_UPDATEENGINELOG: case api::feedback_private::LOG_SOURCE_UPDATEENGINELOG:
return base::MakeUnique<system_logs::SingleLogFileLogSource>( return std::make_unique<system_logs::SingleLogFileLogSource>(
SupportedLogFileSource::kUpdateEngineLog); SupportedLogFileSource::kUpdateEngineLog);
case api::feedback_private::LOG_SOURCE_POWERMANAGERLATEST: case api::feedback_private::LOG_SOURCE_POWERMANAGERLATEST:
return base::MakeUnique<system_logs::SingleLogFileLogSource>( return std::make_unique<system_logs::SingleLogFileLogSource>(
SupportedLogFileSource::kPowerManagerLatest); SupportedLogFileSource::kPowerManagerLatest);
case api::feedback_private::LOG_SOURCE_POWERMANAGERPREVIOUS: case api::feedback_private::LOG_SOURCE_POWERMANAGERPREVIOUS:
return base::MakeUnique<system_logs::SingleLogFileLogSource>( return std::make_unique<system_logs::SingleLogFileLogSource>(
SupportedLogFileSource::kPowerManagerPrevious); SupportedLogFileSource::kPowerManagerPrevious);
// These map to SupportedDebugDaemonSources. // These map to SupportedDebugDaemonSources.
case api::feedback_private::LOG_SOURCE_DRMMODETEST: case api::feedback_private::LOG_SOURCE_DRMMODETEST:
return base::MakeUnique<system_logs::SingleDebugDaemonLogSource>( return std::make_unique<system_logs::SingleDebugDaemonLogSource>(
SupportedDebugDaemonSource::kModetest); SupportedDebugDaemonSource::kModetest);
case api::feedback_private::LOG_SOURCE_LSUSB: case api::feedback_private::LOG_SOURCE_LSUSB:
return base::MakeUnique<system_logs::SingleDebugDaemonLogSource>( return std::make_unique<system_logs::SingleDebugDaemonLogSource>(
SupportedDebugDaemonSource::kLsusb); SupportedDebugDaemonSource::kLsusb);
case api::feedback_private::LOG_SOURCE_LSPCI: case api::feedback_private::LOG_SOURCE_LSPCI:
return base::MakeUnique<system_logs::SingleDebugDaemonLogSource>( return std::make_unique<system_logs::SingleDebugDaemonLogSource>(
SupportedDebugDaemonSource::kLspci); SupportedDebugDaemonSource::kLspci);
case api::feedback_private::LOG_SOURCE_IFCONFIG: case api::feedback_private::LOG_SOURCE_IFCONFIG:
return base::MakeUnique<system_logs::SingleDebugDaemonLogSource>( return std::make_unique<system_logs::SingleDebugDaemonLogSource>(
SupportedDebugDaemonSource::kIfconfig); SupportedDebugDaemonSource::kIfconfig);
case api::feedback_private::LOG_SOURCE_NONE: case api::feedback_private::LOG_SOURCE_NONE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment