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

Unified Diff: components/dom_distiller/content/browser/dom_distiller_viewer_source.h

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/content/browser/dom_distiller_viewer_source.h
diff --git a/components/dom_distiller/content/browser/dom_distiller_viewer_source.h b/components/dom_distiller/content/browser/dom_distiller_viewer_source.h
index 6b5ae35be4c8467146cd0f20c8fef0cb7dc21dd4..a4ec2fabdd629bf9410dcaf5f63e1a61c4cf1b04 100644
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.h
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.h
@@ -5,11 +5,11 @@
#ifndef COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DOM_DISTILLER_VIEWER_SOURCE_H_
#define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DOM_DISTILLER_VIEWER_SOURCE_H_
+#include <memory>
#include <string>
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/dom_distiller/content/browser/distiller_ui_handle.h"
#include "content/public/browser/url_data_source.h"
@@ -23,10 +23,9 @@ class ViewRequestDelegate;
// Serves HTML and resources for viewing distilled articles.
class DomDistillerViewerSource : public content::URLDataSource {
public:
- DomDistillerViewerSource(
- DomDistillerServiceInterface* dom_distiller_service,
- const std::string& scheme,
- scoped_ptr<DistillerUIHandle> ui_handle);
+ DomDistillerViewerSource(DomDistillerServiceInterface* dom_distiller_service,
+ const std::string& scheme,
+ std::unique_ptr<DistillerUIHandle> ui_handle);
~DomDistillerViewerSource() override;
class RequestViewerHandle;
@@ -57,7 +56,7 @@ class DomDistillerViewerSource : public content::URLDataSource {
// An object for accessing chrome-specific UI controls including external
// feedback and opening the distiller settings.
- scoped_ptr<DistillerUIHandle> distiller_ui_handle_;
+ std::unique_ptr<DistillerUIHandle> distiller_ui_handle_;
DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource);
};

Powered by Google App Engine
This is Rietveld 408576698