Index: chrome/browser/apps/drive/drive_app_converter.cc |
diff --git a/chrome/browser/apps/drive/drive_app_converter.cc b/chrome/browser/apps/drive/drive_app_converter.cc |
index 581b67c5ae68049fc552446e516157f3cb18ca87..b7a8c33839361ffe23e11350a3d7fb177faad904 100644 |
--- a/chrome/browser/apps/drive/drive_app_converter.cc |
+++ b/chrome/browser/apps/drive/drive_app_converter.cc |
@@ -7,6 +7,7 @@ |
#include <algorithm> |
#include <set> |
+#include "base/callback_helpers.h" |
#include "base/logging.h" |
#include "base/memory/ref_counted.h" |
#include "base/strings/utf_string_conversions.h" |
@@ -110,7 +111,7 @@ void DriveAppConverter::Start() { |
if (drive_app_info_.app_name.empty() || |
!drive_app_info_.create_url.is_valid()) { |
- finished_callback_.Run(this, false); |
+ base::ResetAndReturn(&finished_callback_).Run(this, false); |
return; |
} |
@@ -198,6 +199,6 @@ void DriveAppConverter::OnFinishCrxInstall(const std::string& extension_id, |
is_new_install_ = success && crx_installer_->current_version().empty(); |
PostInstallCleanUp(); |
- finished_callback_.Run(this, success); |
+ base::ResetAndReturn(&finished_callback_).Run(this, success); |
// |finished_callback_| could delete this. |
} |