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

Unified Diff: extensions/browser/api/system_display/system_display_api.cc

Issue 1902873002: Convert //extensions/browser/api 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
Index: extensions/browser/api/system_display/system_display_api.cc
diff --git a/extensions/browser/api/system_display/system_display_api.cc b/extensions/browser/api/system_display/system_display_api.cc
index a06aa10e624c6c3a69bf885539f50a5de4b984ce..ae4286bcd32620265503bfa4deddd07c1d571e47 100644
--- a/extensions/browser/api/system_display/system_display_api.cc
+++ b/extensions/browser/api/system_display/system_display_api.cc
@@ -4,6 +4,7 @@
#include "extensions/browser/api/system_display/system_display_api.h"
+#include <memory>
#include <string>
#include "build/build_config.h"
@@ -11,7 +12,6 @@
#include "extensions/common/api/system_display.h"
#if defined(OS_CHROMEOS)
-#include "base/memory/scoped_ptr.h"
#include "extensions/common/manifest_handlers/kiosk_mode_info.h"
#include "ui/gfx/screen.h"
#endif
@@ -39,7 +39,7 @@ bool SystemDisplaySetDisplayPropertiesFunction::RunSync() {
return false;
}
std::string error;
- scoped_ptr<SetDisplayProperties::Params> params(
+ std::unique_ptr<SetDisplayProperties::Params> params(
SetDisplayProperties::Params::Create(*args_));
bool result =
DisplayInfoProvider::Get()->SetInfo(params->id, params->info, &error);
@@ -54,7 +54,7 @@ bool SystemDisplayEnableUnifiedDesktopFunction::RunSync() {
SetError("Function available only on ChromeOS.");
return false;
#else
- scoped_ptr<api::system_display::EnableUnifiedDesktop::Params> params(
+ std::unique_ptr<api::system_display::EnableUnifiedDesktop::Params> params(
api::system_display::EnableUnifiedDesktop::Params::Create(*args_));
DisplayInfoProvider::Get()->EnableUnifiedDesktop(params->enabled);
return true;

Powered by Google App Engine
This is Rietveld 408576698