Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "android_webview/browser/net/init_native_callback.h" | 5 #include "android_webview/browser/net/init_native_callback.h" |
| 6 | 6 |
| 7 #include "android_webview/native/android_protocol_handler.h" | 7 #include "android_webview/native/android_protocol_handler.h" |
| 8 #include "android_webview/native/cookie_manager.h" | 8 #include "android_webview/native/cookie_manager.h" |
| 9 #include "net/url_request/url_request_job_factory.h" | |
| 9 | 10 |
| 10 namespace android_webview { | 11 namespace android_webview { |
| 11 | 12 |
| 12 void OnNetworkStackInitialized(net::URLRequestContext* context, | 13 scoped_ptr<net::URLRequestJobFactory> OnNetworkStackInitialized( |
|
mmenke
2012/12/11 17:22:38
I think having an "OnBlah" function return a value
| |
| 13 net::URLRequestJobFactory* job_factory) { | 14 net::URLRequestContext* context, |
| 14 RegisterAndroidProtocolsOnIOThread(context, job_factory); | 15 scoped_ptr<net::URLRequestJobFactory> job_factory) { |
| 15 SetCookieMonsterOnNetworkStackInit(context, job_factory); | 16 job_factory = RegisterAndroidProtocolsOnIOThread(context, job_factory.Pass()); |
| 17 SetCookieMonsterOnNetworkStackInit(context); | |
| 18 return job_factory.Pass(); | |
| 16 } | 19 } |
| 17 | 20 |
| 18 } | 21 } |
|
mmenke
2012/12/11 17:22:38
nit: While you're here, this should have a "// na
| |
| OLD | NEW |