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

Unified Diff: content/browser/gpu/gpu_internals_ui.cc

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.h ('k') | content/browser/gpu/gpu_ipc_browsertests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_internals_ui.cc
diff --git a/content/browser/gpu/gpu_internals_ui.cc b/content/browser/gpu/gpu_internals_ui.cc
index 34ba18db3b6bb7a5443d7f1f3f18aa41e78751f3..6bc08b7e780d7eebf2ae45c87fa9da99504ec38a 100644
--- a/content/browser/gpu/gpu_internals_ui.cc
+++ b/content/browser/gpu/gpu_internals_ui.cc
@@ -203,7 +203,7 @@ base::DictionaryValue* GpuInfoAsDictionaryValue() {
basic_info->Append(NewDescriptionValuePair("Window manager",
ui::GuessWindowManagerName()));
{
- scoped_ptr<base::Environment> env(base::Environment::Create());
+ std::unique_ptr<base::Environment> env(base::Environment::Create());
std::string value;
const char kXDGCurrentDesktop[] = "XDG_CURRENT_DESKTOP";
if (env->GetVar(kXDGCurrentDesktop, &value))
@@ -240,7 +240,7 @@ base::DictionaryValue* GpuInfoAsDictionaryValue() {
info->Set("basic_info", basic_info);
#if defined(OS_WIN)
- scoped_ptr<base::Value> dx_info = base::Value::CreateNullValue();
+ std::unique_ptr<base::Value> dx_info = base::Value::CreateNullValue();
if (gpu_info.dx_diagnostics.children.size())
dx_info.reset(DxDiagNodeToList(gpu_info.dx_diagnostics));
info->Set("diagnostics", std::move(dx_info));
@@ -501,8 +501,8 @@ base::Value* GpuMessageHandler::OnRequestLogMessages(const base::ListValue*) {
void GpuMessageHandler::OnGpuInfoUpdate() {
// Get GPU Info.
- scoped_ptr<base::DictionaryValue> gpu_info_val(GpuInfoAsDictionaryValue());
-
+ std::unique_ptr<base::DictionaryValue> gpu_info_val(
+ GpuInfoAsDictionaryValue());
// Add in blacklisting features
base::DictionaryValue* feature_status = new base::DictionaryValue;
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.h ('k') | content/browser/gpu/gpu_ipc_browsertests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698