| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "extensions/shell/browser/shell_browser_context.h" | 5 #include "extensions/shell/browser/shell_browser_context.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
| 10 #include "extensions/browser/guest_view/guest_view_manager.h" | 10 #include "extensions/browser/guest_view/guest_view_manager.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 content::BrowserThread::PostTask( | 65 content::BrowserThread::PostTask( |
| 66 content::BrowserThread::IO, | 66 content::BrowserThread::IO, |
| 67 FROM_HERE, | 67 FROM_HERE, |
| 68 base::Bind( | 68 base::Bind( |
| 69 &ShellBrowserContext::InitURLRequestContextOnIOThread, | 69 &ShellBrowserContext::InitURLRequestContextOnIOThread, |
| 70 base::Unretained(this))); | 70 base::Unretained(this))); |
| 71 return url_request_context_getter(); | 71 return url_request_context_getter(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void ShellBrowserContext::InitURLRequestContextOnIOThread() { | 74 void ShellBrowserContext::InitURLRequestContextOnIOThread() { |
| 75 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); | 75 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
| 76 | 76 |
| 77 // GetURLRequestContext() will create a URLRequestContext if it isn't | 77 // GetURLRequestContext() will create a URLRequestContext if it isn't |
| 78 // initialized. | 78 // initialized. |
| 79 url_request_context_getter()->GetURLRequestContext(); | 79 url_request_context_getter()->GetURLRequestContext(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace extensions | 82 } // namespace extensions |
| OLD | NEW |