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

Unified Diff: chrome/browser/extensions/api/streams_private/streams_private_api.h

Issue 2466523002: Remove some linked_ptr c/b/extension (Closed)
Patch Set: Created 4 years, 1 month 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/streams_private/streams_private_api.h
diff --git a/chrome/browser/extensions/api/streams_private/streams_private_api.h b/chrome/browser/extensions/api/streams_private/streams_private_api.h
index e2e2ab84aa340079bea4fae328b0496120910342..3d987d480d8f8454b0e81e071a1a77865265de44 100644
--- a/chrome/browser/extensions/api/streams_private/streams_private_api.h
+++ b/chrome/browser/extensions/api/streams_private/streams_private_api.h
@@ -62,9 +62,6 @@ class StreamsPrivateAPI : public BrowserContextKeyedAPI,
private:
friend class BrowserContextKeyedAPIFactory<StreamsPrivateAPI>;
- typedef std::map<std::string,
- std::map<GURL,
- linked_ptr<content::StreamHandle> > > StreamMap;
// ExtensionRegistryObserver implementation.
void OnExtensionUnloaded(content::BrowserContext* browser_context,
@@ -79,6 +76,9 @@ class StreamsPrivateAPI : public BrowserContextKeyedAPI,
static const bool kServiceRedirectedInIncognito = true;
content::BrowserContext* const browser_context_;
+ using StreamMap =
+ std::map<std::string,
+ std::map<GURL, std::unique_ptr<content::StreamHandle>>>;
StreamMap streams_;
// Listen to extension unloaded notifications.

Powered by Google App Engine
This is Rietveld 408576698