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

Unified Diff: content/public/browser/content_browser_client.h

Issue 2618393003: Remove ScopedVector from ContentBrowserClient. (Closed)
Patch Set: cleaner a bit Created 3 years, 11 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: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 343b8753a09028c4fc8530a42ba9e505b7cde7ae..882f1f50a32c6702c08b9815392570c8d0149393 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -14,7 +14,6 @@
#include <vector>
#include "base/callback_forward.h"
-#include "base/memory/scoped_vector.h"
#include "base/task_scheduler/task_scheduler.h"
#include "base/values.h"
#include "build/build_config.h"
@@ -622,7 +621,8 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual void GetAdditionalFileSystemBackends(
BrowserContext* browser_context,
const base::FilePath& storage_partition_path,
- ScopedVector<storage::FileSystemBackend>* additional_backends) {}
+ std::vector<std::unique_ptr<storage::FileSystemBackend>>*
+ additional_backends) {}
// Creates a new DevToolsManagerDelegate. The caller owns the returned value.
// It's valid to return nullptr.
@@ -744,8 +744,8 @@ class CONTENT_EXPORT ContentBrowserClient {
// to control the flow of a navigation on the UI thread. The embedder is
// guaranteed that the throttles will be executed in the order they were
// provided.
- virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation(
- NavigationHandle* navigation_handle);
+ virtual std::vector<std::unique_ptr<NavigationThrottle>>
+ CreateThrottlesForNavigation(NavigationHandle* navigation_handle);
// PlzNavigate
// Called at the start of the navigation to get opaque data the embedder

Powered by Google App Engine
This is Rietveld 408576698