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

Unified Diff: components/renderer_context_menu/context_menu_delegate.h

Issue 1921923002: Convert //components/[o-t]* 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: components/renderer_context_menu/context_menu_delegate.h
diff --git a/components/renderer_context_menu/context_menu_delegate.h b/components/renderer_context_menu/context_menu_delegate.h
index 9ce0495b36765842b794052ca61a53abcaabd15c..bbb5c2579afd1faaf0a85fe74109fe60c9f6043c 100644
--- a/components/renderer_context_menu/context_menu_delegate.h
+++ b/components/renderer_context_menu/context_menu_delegate.h
@@ -5,8 +5,9 @@
#ifndef COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_
#define COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
class RenderViewContextMenuBase;
@@ -26,12 +27,12 @@ class ContextMenuDelegate {
// Builds and returns a context menu for a context specified by |params|.
// The returned value can be used to display the context menu.
- virtual scoped_ptr<RenderViewContextMenuBase> BuildMenu(
+ virtual std::unique_ptr<RenderViewContextMenuBase> BuildMenu(
content::WebContents* web_contents,
const content::ContextMenuParams& params) = 0;
// Displays the context menu.
- virtual void ShowMenu(scoped_ptr<RenderViewContextMenuBase> menu) = 0;
+ virtual void ShowMenu(std::unique_ptr<RenderViewContextMenuBase> menu) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(ContextMenuDelegate);
« no previous file with comments | « components/rappor/test_rappor_service.cc ('k') | components/renderer_context_menu/render_view_context_menu_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698