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

Unified Diff: chrome/browser/sync/glue/password_model_associator.cc

Issue 2867036: sync: Remove unused function ChromeModelHasUserCreatedNodes. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: explicit Created 10 years, 6 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
Index: chrome/browser/sync/glue/password_model_associator.cc
diff --git a/chrome/browser/sync/glue/password_model_associator.cc b/chrome/browser/sync/glue/password_model_associator.cc
index e4d2e05f38425c426ec74784e706c4ac2446dd38..fa2d9ebc025fe8a5e48e7bf107db351f10cf753e 100644
--- a/chrome/browser/sync/glue/password_model_associator.cc
+++ b/chrome/browser/sync/glue/password_model_associator.cc
@@ -191,21 +191,6 @@ bool PasswordModelAssociator::SyncModelHasUserCreatedNodes(bool* has_nodes) {
return true;
}
-bool PasswordModelAssociator::ChromeModelHasUserCreatedNodes(bool* has_nodes) {
- DCHECK(has_nodes);
- std::vector<webkit_glue::PasswordForm*> passwords;
- if (!password_store_->FillAutofillableLogins(&passwords) ||
- !password_store_->FillBlacklistLogins(&passwords)) {
- STLDeleteElements(&passwords);
- LOG(ERROR) << "Could not get the password entries.";
- return false;
- }
-
- *has_nodes = !passwords.empty();
- STLDeleteElements(&passwords);
- return true;
-}
-
void PasswordModelAssociator::AbortAssociation() {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
AutoLock lock(abort_association_pending_lock_);

Powered by Google App Engine
This is Rietveld 408576698