Index: chrome/browser/profile_resetter/brandcode_config_fetcher.cc |
diff --git a/chrome/browser/profile_resetter/brandcode_config_fetcher.cc b/chrome/browser/profile_resetter/brandcode_config_fetcher.cc |
index c381f6ce1916cabec02185c9c3c15a122cdb62aa..d8b5356c9a39ee61965ac9e3de25a57d9bb0030b 100644 |
--- a/chrome/browser/profile_resetter/brandcode_config_fetcher.cc |
+++ b/chrome/browser/profile_resetter/brandcode_config_fetcher.cc |
@@ -6,6 +6,7 @@ |
#include <stddef.h> |
+#include "base/callback_helpers.h" |
#include "base/macros.h" |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/browser/browser_process.h" |
@@ -187,12 +188,12 @@ void BrandcodeConfigFetcher::OnURLFetchComplete(const net::URLFetcher* source) { |
} |
config_fetcher_.reset(); |
download_timer_.Stop(); |
- fetch_callback_.Run(); |
+ base::ResetAndReturn(&fetch_callback_).Run(); |
} |
void BrandcodeConfigFetcher::OnDownloadTimeout() { |
if (config_fetcher_) { |
config_fetcher_.reset(); |
- fetch_callback_.Run(); |
+ base::ResetAndReturn(&fetch_callback_).Run(); |
} |
} |