| Index: third_party/libaddressinput/chromium/chrome_address_validator.cc
|
| diff --git a/third_party/libaddressinput/chromium/chrome_address_validator.cc b/third_party/libaddressinput/chromium/chrome_address_validator.cc
|
| index 8e9f0f2374df4e140d94e0553f7b98d18fadc190..ef11a62fb1c818c77e6613710bd2ab8041ca4b31 100644
|
| --- a/third_party/libaddressinput/chromium/chrome_address_validator.cc
|
| +++ b/third_party/libaddressinput/chromium/chrome_address_validator.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/location.h"
|
| #include "base/logging.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "third_party/libaddressinput/chromium/addressinput_util.h"
|
| #include "third_party/libaddressinput/chromium/input_suggester.h"
|
| #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_data.h"
|
| @@ -147,11 +148,9 @@ void AddressValidator::RulesLoaded(bool success,
|
| if (success || attempts_number_[region_code] + 1 >= kMaxAttemptsNumber)
|
| return;
|
|
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - base::Bind(&AddressValidator::RetryLoadRules,
|
| - weak_factory_.GetWeakPtr(),
|
| - region_code),
|
| + base::MessageLoop::current()->task_runner()->PostDelayedTask(
|
| + FROM_HERE, base::Bind(&AddressValidator::RetryLoadRules,
|
| + weak_factory_.GetWeakPtr(), region_code),
|
| GetBaseRetryPeriod() * pow(2, attempts_number_[region_code]++));
|
| }
|
|
|
|
|