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

Unified Diff: chrome/browser/background/background_mode_manager.h

Issue 2767893002: Remove ScopedVector from chrome/browser/. (Closed)
Patch Set: Address comments from zea@ Created 3 years, 9 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/background/background_mode_manager.h
diff --git a/chrome/browser/background/background_mode_manager.h b/chrome/browser/background/background_mode_manager.h
index df5ccefae6abb734129bfc9cf0e19984c9284e86..0533330ea56f46cd04f704eff71cda2e9335e12c 100644
--- a/chrome/browser/background/background_mode_manager.h
+++ b/chrome/browser/background/background_mode_manager.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_
#include <map>
+#include <memory>
#include <set>
#include <vector>
@@ -13,7 +14,6 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/linked_ptr.h"
-#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/background/background_application_list_model.h"
#include "chrome/browser/lifetime/scoped_keep_alive.h"
@@ -424,7 +424,7 @@ class BackgroundModeManager
CommandIdHandlerVector command_id_handler_vector_;
// Maintains submenu lifetime for the multiple profile context menu.
- ScopedVector<StatusIconMenuModel> submenus;
+ std::vector<std::unique_ptr<StatusIconMenuModel>> submenus;
// Reference to our status tray. If null, the platform doesn't support status
// icons.
« no previous file with comments | « chrome/browser/apps/drive/drive_app_provider.cc ('k') | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698