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

Unified Diff: chrome/browser/chromeos/user_cros_settings_provider.cc

Issue 7741045: Delay the metrics policy migration call to make sure ownership has been taken. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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?
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698