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

Unified Diff: chrome/browser/extensions/extension_install_prompt.cc

Issue 2110603002: Remove calls to MessageLoop::current() in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « chrome/browser/extensions/extension_install_prompt.h ('k') | chrome/browser/metrics/thread_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_install_prompt.cc
diff --git a/chrome/browser/extensions/extension_install_prompt.cc b/chrome/browser/extensions/extension_install_prompt.cc
index 451abf1a9654c67b4737f44f5b92dfe1040a1d29..66f6814862f5ca25a50b6024bd433fa573e2fc52 100644
--- a/chrome/browser/extensions/extension_install_prompt.cc
+++ b/chrome/browser/extensions/extension_install_prompt.cc
@@ -609,7 +609,6 @@ scoped_refptr<Extension>
ExtensionInstallPrompt::ExtensionInstallPrompt(content::WebContents* contents)
: profile_(ProfileForWebContents(contents)),
- ui_loop_(base::MessageLoop::current()),
extension_(NULL),
install_ui_(extensions::CreateExtensionInstallUI(
ProfileForWebContents(contents))),
@@ -621,7 +620,6 @@ ExtensionInstallPrompt::ExtensionInstallPrompt(content::WebContents* contents)
ExtensionInstallPrompt::ExtensionInstallPrompt(Profile* profile,
gfx::NativeWindow native_window)
: profile_(profile),
- ui_loop_(base::MessageLoop::current()),
extension_(NULL),
install_ui_(extensions::CreateExtensionInstallUI(profile)),
show_params_(
@@ -660,7 +658,7 @@ void ExtensionInstallPrompt::ShowDialog(
std::unique_ptr<Prompt> prompt,
std::unique_ptr<const PermissionSet> custom_permissions,
const ShowDialogCallback& show_dialog_callback) {
- DCHECK(ui_loop_ == base::MessageLoop::current());
+ DCHECK(ui_thread_checker_.CalledOnValidThread());
DCHECK(prompt);
extension_ = extension;
done_callback_ = done_callback;
« no previous file with comments | « chrome/browser/extensions/extension_install_prompt.h ('k') | chrome/browser/metrics/thread_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698