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

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

Issue 1059973004: favor DCHECK_CURRENTLY_ON for better logs in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
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
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
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | extensions/shell/browser/shell_oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698