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

Unified Diff: chrome/browser/extensions/api/web_navigation/web_navigation_api.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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: chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
index c9f9cce3c47ece6ec7af634d6373270454775f2b..9e72ecab1c2e14e11b5c99cde71abf8aabef1d1d 100644
--- a/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
+++ b/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
@@ -448,7 +448,7 @@ bool WebNavigationTabObserver::IsReferenceFragmentNavigation(
}
bool WebNavigationGetFrameFunction::RunSync() {
- scoped_ptr<GetFrame::Params> params(GetFrame::Params::Create(*args_));
+ std::unique_ptr<GetFrame::Params> params(GetFrame::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
int tab_id = params->details.tab_id;
int frame_id = params->details.frame_id;
@@ -495,7 +495,8 @@ bool WebNavigationGetFrameFunction::RunSync() {
}
bool WebNavigationGetAllFramesFunction::RunSync() {
- scoped_ptr<GetAllFrames::Params> params(GetAllFrames::Params::Create(*args_));
+ std::unique_ptr<GetAllFrames::Params> params(
+ GetAllFrames::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
int tab_id = params->details.tab_id;

Powered by Google App Engine
This is Rietveld 408576698