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

Side by Side Diff: extensions/shell/browser/shell_url_request_context_getter.cc

Issue 631203003: Fix bug: AppShell: CHECK failure in PeerConnection init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes are made. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "extensions/shell/browser/shell_url_request_context_getter.h"
6
7 #include "content/public/browser/resource_request_info.h"
8 #include "extensions/browser/info_map.h"
9 #include "extensions/shell/browser/shell_network_delegate.h"
10
11 namespace extensions {
12
13 ShellURLRequestContextGetter::ShellURLRequestContextGetter(
14 content::BrowserContext* browser_context,
15 bool ignore_certificate_errors,
16 const base::FilePath& base_path,
17 base::MessageLoop* io_loop,
18 base::MessageLoop* file_loop,
19 content::ProtocolHandlerMap* protocol_handlers,
20 content::URLRequestInterceptorScopedVector request_interceptors,
21 net::NetLog* net_log,
22 InfoMap* extension_info_map)
23 : content::ShellURLRequestContextGetter(ignore_certificate_errors,
24 base_path,
25 io_loop,
26 file_loop,
27 protocol_handlers,
28 request_interceptors.Pass(),
29 net_log),
30 browser_context_(browser_context),
31 ignore_certificate_errors_(ignore_certificate_errors),
James Cook 2014/10/07 22:38:45 You never use this member variable. You can get ri
Xi Han 2014/10/08 13:48:48 Thank you for catching it. I forgot to update here
32 extension_info_map_(extension_info_map) {
33 }
34
35 ShellURLRequestContextGetter::~ShellURLRequestContextGetter() {
36 }
37
38 net::NetworkDelegate*
39 ShellURLRequestContextGetter::CreateNetworkDelegate() {
40 return new ShellNetworkDelegate(browser_context_, extension_info_map_);
41 }
42
43 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698