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

Unified Diff: content/renderer/browser_render_view_browsertest.cc

Issue 657763002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | content/renderer/gpu/frame_swap_message_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_render_view_browsertest.cc
diff --git a/content/renderer/browser_render_view_browsertest.cc b/content/renderer/browser_render_view_browsertest.cc
index bfeeb72ea3013df697570f5f3faedb410984e74f..dd7cc7ddb68034e2749891251728f58764b26534 100644
--- a/content/renderer/browser_render_view_browsertest.cc
+++ b/content/renderer/browser_render_view_browsertest.cc
@@ -88,8 +88,7 @@ void InterceptNetworkTransactions(net::URLRequestContextGetter* getter,
new net::FailingHttpTransactionFactory(cache->GetSession(), error));
// Throw away old version; since this is a browser test, there is no
// need to restore the old state.
- cache->SetHttpNetworkTransactionFactoryForTesting(
- factory.PassAs<net::HttpTransactionFactory>());
+ cache->SetHttpNetworkTransactionFactoryForTesting(factory.Pass());
}
void CallOnUIThreadValidatingReturn(const base::Closure& callback,
« no previous file with comments | « no previous file | content/renderer/gpu/frame_swap_message_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698