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

Unified Diff: extensions/browser/lazy_background_task_queue.h

Issue 2294653002: Some linked_ptr -> unique_ptr conversion in extensions/browser. (Closed)
Patch Set: address comments Created 4 years, 4 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: extensions/browser/lazy_background_task_queue.h
diff --git a/extensions/browser/lazy_background_task_queue.h b/extensions/browser/lazy_background_task_queue.h
index 6aeecb859cdef76b78005e6f6ee097d1a1d2aace..1840cc8b92725a103ff83fce6620c86ba588fce7 100644
--- a/extensions/browser/lazy_background_task_queue.h
+++ b/extensions/browser/lazy_background_task_queue.h
@@ -13,7 +13,6 @@
#include "base/callback_forward.h"
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
-#include "base/memory/linked_ptr.h"
#include "base/scoped_observer.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/notification_observer.h"
@@ -76,8 +75,8 @@ class LazyBackgroundTaskQueue : public KeyedService,
typedef std::string ExtensionID;
typedef std::pair<content::BrowserContext*, ExtensionID> PendingTasksKey;
typedef std::vector<PendingTask> PendingTasksList;
- typedef std::map<PendingTasksKey,
- linked_ptr<PendingTasksList> > PendingTasksMap;
+ using PendingTasksMap =
+ std::map<PendingTasksKey, std::unique_ptr<PendingTasksList>>;
// content::NotificationObserver interface.
void Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698