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

Unified Diff: content/browser/devtools/protocol/emulation_handler.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
Index: content/browser/devtools/protocol/emulation_handler.cc
diff --git a/content/browser/devtools/protocol/emulation_handler.cc b/content/browser/devtools/protocol/emulation_handler.cc
index 6b124e37131dc66c0de5ec67f551117388bf4e4f..12c377a4fc84eab5396d2d195ded5158134a463f 100644
--- a/content/browser/devtools/protocol/emulation_handler.cc
+++ b/content/browser/devtools/protocol/emulation_handler.cc
@@ -85,7 +85,7 @@ Response EmulationHandler::SetGeolocationOverride(
GeolocationServiceContext* geolocation_context =
GetWebContents()->GetGeolocationServiceContext();
- scoped_ptr<Geoposition> geoposition(new Geoposition());
+ std::unique_ptr<Geoposition> geoposition(new Geoposition());
if (latitude && longitude && accuracy) {
geoposition->latitude = *latitude;
geoposition->longitude = *longitude;
@@ -146,7 +146,7 @@ Response EmulationHandler::SetDeviceMetricsOverride(
const int* screen_height,
const int* position_x,
const int* position_y,
- const scoped_ptr<base::DictionaryValue>& screen_orientation) {
+ const std::unique_ptr<base::DictionaryValue>& screen_orientation) {
const static int max_size = 10000000;
const static double max_scale = 10;
const static int max_orientation_angle = 360;
« no previous file with comments | « content/browser/devtools/protocol/emulation_handler.h ('k') | content/browser/devtools/protocol/input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698