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

Unified Diff: components/password_manager/sync/browser/password_model_worker.cc

Issue 2489433002: [Sync] Move thread checking into the ModelSafeWorker interface. (Closed)
Patch Set: Fix iOS hopefully. Created 4 years, 1 month 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
Index: components/password_manager/sync/browser/password_model_worker.cc
diff --git a/components/password_manager/sync/browser/password_model_worker.cc b/components/password_manager/sync/browser/password_model_worker.cc
index 91d17c883f50439c547f33cd8ad18acbe796b24f..7a22023f3b618ab73bdb995c65772cdb1c11db39 100644
--- a/components/password_manager/sync/browser/password_model_worker.cc
+++ b/components/password_manager/sync/browser/password_model_worker.cc
@@ -62,6 +62,11 @@ syncer::ModelSafeGroup PasswordModelWorker::GetModelSafeGroup() {
return syncer::GROUP_PASSWORD;
}
+bool PasswordModelWorker::IsOnModelThread() {
+ // Can't do better without modifying PasswordStore.
vabr (Chromium) 2016/11/08 08:32:45 Please explain the issue better. Ideally, the issu
maxbogue 2016/11/08 18:43:23 I've improved the comment to hopefully be clearer
vabr (Chromium) 2016/11/08 19:24:59 Acknowledged. If there was a need to implement thi
+ return true;
+}
+
PasswordModelWorker::~PasswordModelWorker() {}
void PasswordModelWorker::RequestStop() {

Powered by Google App Engine
This is Rietveld 408576698