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

Unified Diff: chromeos/geolocation/simple_geolocation_provider.h

Issue 2285393004: Replace deprecated ScopedVector<T> in chromeos::SimpleGeolocationProvider (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | chromeos/geolocation/simple_geolocation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/geolocation/simple_geolocation_provider.h
diff --git a/chromeos/geolocation/simple_geolocation_provider.h b/chromeos/geolocation/simple_geolocation_provider.h
index 245dc27111ddcb69bcbfc14d5b55a4d8df15d539..2b7ded2f8adaccc4bdab1eb7361618ed83f28f13 100644
--- a/chromeos/geolocation/simple_geolocation_provider.h
+++ b/chromeos/geolocation/simple_geolocation_provider.h
@@ -5,9 +5,11 @@
#ifndef CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_PROVIDER_H_
#define CHROMEOS_GEOLOCATION_SIMPLE_GEOLOCATION_PROVIDER_H_
+#include <memory>
+#include <vector>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_vector.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
#include "chromeos/chromeos_export.h"
@@ -62,7 +64,7 @@ class CHROMEOS_EXPORT SimpleGeolocationProvider {
// Requests in progress.
// SimpleGeolocationProvider owns all requests, so this vector is deleted on
// destroy.
- ScopedVector<SimpleGeolocationRequest> requests_;
+ std::vector<std::unique_ptr<SimpleGeolocationRequest>> requests_;
// Creation and destruction should happen on the same thread.
base::ThreadChecker thread_checker_;
« no previous file with comments | « no previous file | chromeos/geolocation/simple_geolocation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698