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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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
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 73b893ce18f4092834b0777f052761f27c4c666c..b78f4d3b3b00d94ba2c2aa412e9a6f0bc45336c8 100644
--- a/chrome/browser/extensions/extension_install_prompt.cc
+++ b/chrome/browser/extensions/extension_install_prompt.cc
@@ -151,7 +151,7 @@ bool AutoConfirmPrompt(ExtensionInstallPrompt::Delegate* delegate) {
// the real implementations it's highly likely the message loop will be
// pumping a few times before the user clicks accept or cancel.
if (value == "accept") {
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&ExtensionInstallPrompt::Delegate::InstallUIProceed,
base::Unretained(delegate)));
@@ -159,7 +159,7 @@ bool AutoConfirmPrompt(ExtensionInstallPrompt::Delegate* delegate) {
}
if (value == "cancel") {
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&ExtensionInstallPrompt::Delegate::InstallUIAbort,
base::Unretained(delegate),
@@ -414,7 +414,7 @@ scoped_refptr<Extension>
ExtensionInstallPrompt::ExtensionInstallPrompt(
content::WebContents* contents)
: record_oauth2_grant_(false),
- ui_loop_(MessageLoop::current()),
+ ui_loop_(base::MessageLoop::current()),
extension_(NULL),
install_ui_(ExtensionInstallUI::Create(ProfileForWebContents(contents))),
show_params_(contents),
@@ -428,7 +428,7 @@ ExtensionInstallPrompt::ExtensionInstallPrompt(
gfx::NativeWindow native_window,
content::PageNavigator* navigator)
: record_oauth2_grant_(false),
- ui_loop_(MessageLoop::current()),
+ ui_loop_(base::MessageLoop::current()),
extension_(NULL),
install_ui_(ExtensionInstallUI::Create(profile)),
show_params_(native_window, navigator),
@@ -443,7 +443,7 @@ ExtensionInstallPrompt::~ExtensionInstallPrompt() {
void ExtensionInstallPrompt::ConfirmBundleInstall(
extensions::BundleInstaller* bundle,
const PermissionSet* permissions) {
- DCHECK(ui_loop_ == MessageLoop::current());
+ DCHECK(ui_loop_ == base::MessageLoop::current());
bundle_ = bundle;
permissions_ = permissions;
delegate_ = bundle;
@@ -457,7 +457,7 @@ void ExtensionInstallPrompt::ConfirmStandaloneInstall(
const Extension* extension,
SkBitmap* icon,
const ExtensionInstallPrompt::Prompt& prompt) {
- DCHECK(ui_loop_ == MessageLoop::current());
+ DCHECK(ui_loop_ == base::MessageLoop::current());
extension_ = extension;
permissions_ = extension->GetActivePermissions();
delegate_ = delegate;
@@ -483,7 +483,7 @@ void ExtensionInstallPrompt::ConfirmInstall(
Delegate* delegate,
const Extension* extension,
const ShowDialogCallback& show_dialog_callback) {
- DCHECK(ui_loop_ == MessageLoop::current());
+ DCHECK(ui_loop_ == base::MessageLoop::current());
extension_ = extension;
permissions_ = extension->GetActivePermissions();
delegate_ = delegate;
@@ -510,7 +510,7 @@ void ExtensionInstallPrompt::ConfirmInstall(
void ExtensionInstallPrompt::ConfirmReEnable(Delegate* delegate,
const Extension* extension) {
- DCHECK(ui_loop_ == MessageLoop::current());
+ DCHECK(ui_loop_ == base::MessageLoop::current());
extension_ = extension;
permissions_ = extension->GetActivePermissions();
delegate_ = delegate;
@@ -523,7 +523,7 @@ void ExtensionInstallPrompt::ConfirmExternalInstall(
Delegate* delegate,
const Extension* extension,
const ShowDialogCallback& show_dialog_callback) {
- DCHECK(ui_loop_ == MessageLoop::current());
+ DCHECK(ui_loop_ == base::MessageLoop::current());
extension_ = extension;
permissions_ = extension->GetActivePermissions();
delegate_ = delegate;
@@ -537,7 +537,7 @@ void ExtensionInstallPrompt::ConfirmPermissions(
Delegate* delegate,
const Extension* extension,
const PermissionSet* permissions) {
- DCHECK(ui_loop_ == MessageLoop::current());
+ DCHECK(ui_loop_ == base::MessageLoop::current());
extension_ = extension;
permissions_ = permissions;
delegate_ = delegate;
@@ -550,7 +550,7 @@ void ExtensionInstallPrompt::ConfirmIssueAdvice(
Delegate* delegate,
const Extension* extension,
const IssueAdviceInfo& issue_advice) {
- DCHECK(ui_loop_ == MessageLoop::current());
+ DCHECK(ui_loop_ == base::MessageLoop::current());
extension_ = extension;
delegate_ = delegate;
prompt_.set_type(PERMISSIONS_PROMPT);
@@ -563,7 +563,7 @@ void ExtensionInstallPrompt::ConfirmIssueAdvice(
void ExtensionInstallPrompt::ReviewPermissions(Delegate* delegate,
const Extension* extension) {
- DCHECK(ui_loop_ == MessageLoop::current());
+ DCHECK(ui_loop_ == base::MessageLoop::current());
extension_ = extension;
permissions_ = extension->GetActivePermissions();
delegate_ = delegate;
« no previous file with comments | « chrome/browser/extensions/extension_info_map_unittest.cc ('k') | chrome/browser/extensions/extension_prefs_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698