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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_event_router.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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: chrome/browser/extensions/api/tabs/tabs_event_router.h
diff --git a/chrome/browser/extensions/api/tabs/tabs_event_router.h b/chrome/browser/extensions/api/tabs/tabs_event_router.h
index 0c512ae8748c141a8dc6d1376494052e8daad763..b023dc44503bea14d5750472fb67c192651b0c28 100644
--- a/chrome/browser/extensions/api/tabs/tabs_event_router.h
+++ b/chrome/browser/extensions/api/tabs/tabs_event_router.h
@@ -107,14 +107,14 @@ class TabsEventRouter : public TabStripModelObserver,
void DispatchEvent(Profile* profile,
events::HistogramValue histogram_value,
const std::string& event_name,
- scoped_ptr<base::ListValue> args,
+ std::unique_ptr<base::ListValue> args,
EventRouter::UserGestureState user_gesture);
void DispatchEventsAcrossIncognito(
Profile* profile,
const std::string& event_name,
- scoped_ptr<base::ListValue> event_args,
- scoped_ptr<base::ListValue> cross_incognito_args);
+ std::unique_ptr<base::ListValue> event_args,
+ std::unique_ptr<base::ListValue> cross_incognito_args);
// Packages |changed_property_names| as a tab updated event for the tab
// |contents| and dispatches the event to the extension.
@@ -185,7 +185,7 @@ class TabsEventRouter : public TabStripModelObserver,
// nullptr if not.
TabEntry* GetTabEntry(content::WebContents* contents);
- using TabEntryMap = std::map<int, scoped_ptr<TabEntry>>;
+ using TabEntryMap = std::map<int, std::unique_ptr<TabEntry>>;
TabEntryMap tab_entries_;
// The main profile that owns this event router.
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api_unittest.cc ('k') | chrome/browser/extensions/api/tabs/tabs_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698