Chromium Code Reviews| Index: chrome/browser/chromeos/user_cros_settings_provider.cc |
| diff --git a/chrome/browser/chromeos/user_cros_settings_provider.cc b/chrome/browser/chromeos/user_cros_settings_provider.cc |
| index c50e429895399c73c5e8519a08951ff99de3f5b3..52e53af9b9a46b3935c318fdb0ccc040c19ea763 100644 |
| --- a/chrome/browser/chromeos/user_cros_settings_provider.cc |
| +++ b/chrome/browser/chromeos/user_cros_settings_provider.cc |
| @@ -63,14 +63,16 @@ void StartStorePropertyOpIfOwner(const std::string& name, |
| const std::string& value, |
| SignedSettingsHelper::Callback* callback) { |
| if (OwnershipService::GetSharedInstance()->CurrentUserIsOwner()) { |
| - BrowserThread::PostTask(BrowserThread::UI, |
| + // Delay this task by 30 seconds to ensure the ownership has been taken. |
|
Mattias Nissler (ping if slow)
2011/08/29 10:55:26
If you really want to do this, then please put the
|
| + BrowserThread::PostDelayedTask(BrowserThread::UI, |
| FROM_HERE, |
| base::Bind( |
| &SignedSettingsHelper::StartStorePropertyOp, |
| base::Unretained(SignedSettingsHelper::Get()), |
| name, |
| value, |
| - callback)); |
| + callback), |
| + 1000 * 30); |
|
Mattias Nissler (ping if slow)
2011/08/29 10:55:26
declare a constant?
|
| } |
| } |