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

Unified Diff: chrome/browser/ui/webui/inspect_ui.h

Issue 1865213004: Convert //chrome/browser/ui 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
« no previous file with comments | « chrome/browser/ui/webui/history_login_handler.h ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/inspect_ui.h
diff --git a/chrome/browser/ui/webui/inspect_ui.h b/chrome/browser/ui/webui/inspect_ui.h
index 3a814e399d557896c77e9cfb9aac1d9141a746fd..9faee68f28267e87c740da3700196799ad58a239 100644
--- a/chrome/browser/ui/webui/inspect_ui.h
+++ b/chrome/browser/ui/webui/inspect_ui.h
@@ -6,10 +6,10 @@
#define CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_
#include <map>
+#include <memory>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "components/prefs/pref_change_registrar.h"
#include "content/public/browser/notification_observer.h"
@@ -67,8 +67,7 @@ class InspectUI : public content::WebUIController,
const base::Value* GetPrefValue(const char* name);
- void AddTargetUIHandler(
- scoped_ptr<DevToolsTargetsUIHandler> handler);
+ void AddTargetUIHandler(std::unique_ptr<DevToolsTargetsUIHandler> handler);
DevToolsTargetsUIHandler* FindTargetHandler(
const std::string& source_id);
@@ -94,7 +93,7 @@ class InspectUI : public content::WebUIController,
typedef std::map<std::string, DevToolsTargetsUIHandler*> TargetHandlerMap;
TargetHandlerMap target_handlers_;
- scoped_ptr<PortForwardingStatusSerializer> port_status_serializer_;
+ std::unique_ptr<PortForwardingStatusSerializer> port_status_serializer_;
DISALLOW_COPY_AND_ASSIGN(InspectUI);
};
« no previous file with comments | « chrome/browser/ui/webui/history_login_handler.h ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698