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

Unified Diff: components/dom_distiller/core/dom_distiller_request_view_base.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/core/dom_distiller_request_view_base.h
diff --git a/components/dom_distiller/core/dom_distiller_request_view_base.h b/components/dom_distiller/core/dom_distiller_request_view_base.h
index c35b9255ffe045cb6829a1e525f0057fd17ce038..308cbd0ba7eb3ea4f43ef2ce9dd85fc70ae77da6 100644
--- a/components/dom_distiller/core/dom_distiller_request_view_base.h
+++ b/components/dom_distiller/core/dom_distiller_request_view_base.h
@@ -5,11 +5,11 @@
#ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_REQUEST_VIEW_BASE_H_
#define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_REQUEST_VIEW_BASE_H_
+#include <memory>
#include <sstream>
#include <string>
#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/task_tracker.h"
@@ -36,7 +36,7 @@ class DomDistillerRequestViewBase : public ViewRequestDelegate,
void OnArticleUpdated(ArticleDistillationUpdate article_update) override;
- void TakeViewerHandle(scoped_ptr<ViewerHandle> viewer_handle);
+ void TakeViewerHandle(std::unique_ptr<ViewerHandle> viewer_handle);
protected:
// DistilledPagePrefs::Observer implementation:
@@ -54,7 +54,7 @@ class DomDistillerRequestViewBase : public ViewRequestDelegate,
// The handle to the view request towards the DomDistillerService. It
// needs to be kept around to ensure the distillation request finishes.
- scoped_ptr<ViewerHandle> viewer_handle_;
+ std::unique_ptr<ViewerHandle> viewer_handle_;
// Number of pages of the distilled article content that have been rendered by
// the viewer.

Powered by Google App Engine
This is Rietveld 408576698