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

Unified Diff: extensions/shell/browser/shell_content_browser_client.cc

Issue 2618393003: Remove ScopedVector from ContentBrowserClient. (Closed)
Patch Set: rebase 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: extensions/shell/browser/shell_content_browser_client.cc
diff --git a/extensions/shell/browser/shell_content_browser_client.cc b/extensions/shell/browser/shell_content_browser_client.cc
index 39482a9d827f9847b51fec4794055774e85b357e..b55d93532e73b1d032aafb93252336e9097885b9 100644
--- a/extensions/shell/browser/shell_content_browser_client.cc
+++ b/extensions/shell/browser/shell_content_browser_client.cc
@@ -231,11 +231,12 @@ ShellContentBrowserClient::GetDevToolsManagerDelegate() {
return new content::ShellDevToolsManagerDelegate(GetBrowserContext());
}
-ScopedVector<content::NavigationThrottle>
+std::vector<std::unique_ptr<content::NavigationThrottle>>
ShellContentBrowserClient::CreateThrottlesForNavigation(
content::NavigationHandle* navigation_handle) {
- ScopedVector<content::NavigationThrottle> throttles;
- throttles.push_back(new ExtensionNavigationThrottle(navigation_handle));
+ std::vector<std::unique_ptr<content::NavigationThrottle>> throttles;
+ throttles.push_back(
+ base::MakeUnique<ExtensionNavigationThrottle>(navigation_handle));
return throttles;
}
« no previous file with comments | « extensions/shell/browser/shell_content_browser_client.h ('k') | storage/browser/fileapi/file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698