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

Unified Diff: components/dom_distiller/core/dom_distiller_request_view_base.cc

Issue 1879613003: Convert //components/dom_distiller from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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: components/dom_distiller/core/dom_distiller_request_view_base.cc
diff --git a/components/dom_distiller/core/dom_distiller_request_view_base.cc b/components/dom_distiller/core/dom_distiller_request_view_base.cc
index 3cec2bbd36424b37e03c6b1e49a35d891a5debcb..b0ab8354b89e23933c290ff482fc84f292eca177 100644
--- a/components/dom_distiller/core/dom_distiller_request_view_base.cc
+++ b/components/dom_distiller/core/dom_distiller_request_view_base.cc
@@ -4,12 +4,12 @@
#include "components/dom_distiller/core/dom_distiller_request_view_base.h"
+#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#include "components/dom_distiller/core/distilled_page_prefs.h"
#include "components/dom_distiller/core/dom_distiller_service.h"
#include "components/dom_distiller/core/experiments.h"
@@ -114,7 +114,7 @@ void DomDistillerRequestViewBase::OnChangeFontScaling(float scaling) {
}
void DomDistillerRequestViewBase::TakeViewerHandle(
- scoped_ptr<ViewerHandle> viewer_handle) {
+ std::unique_ptr<ViewerHandle> viewer_handle) {
viewer_handle_ = std::move(viewer_handle);
// Getting the viewer handle means this is not an error page, send
// the viewer JavaScript and show the loading indicator.

Powered by Google App Engine
This is Rietveld 408576698