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

Unified Diff: chrome/browser/password_manager/password_store_factory.cc

Issue 2714543006: Clean Obsolete HTTP Data from the Password Store (Closed)
Patch Set: Fix BUILD.dn, exclude compilation on iOS Created 3 years, 9 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/password_manager/password_store_factory.cc
diff --git a/chrome/browser/password_manager/password_store_factory.cc b/chrome/browser/password_manager/password_store_factory.cc
index 65020c1482d1979332f48f08fef99edfc6117cda..2bc43e7bd8059aa35cd4a036b0e95184f837c065 100644
--- a/chrome/browser/password_manager/password_store_factory.cc
+++ b/chrome/browser/password_manager/password_store_factory.cc
@@ -9,6 +9,7 @@
#include "base/command_line.h"
#include "base/environment.h"
+#include "base/memory/ref_counted.h"
#include "base/metrics/histogram_macros.h"
#include "base/rand_util.h"
#include "base/threading/thread_task_runner_handle.h"
@@ -22,6 +23,7 @@
#include "components/browser_sync/profile_sync_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/os_crypt/os_crypt_switches.h"
+#include "components/password_manager/core/browser/http_data_cleaner.h"
#include "components/password_manager/core/browser/login_database.h"
#include "components/password_manager/core/browser/password_store.h"
#include "components/password_manager/core/browser/password_store_default.h"
@@ -267,6 +269,11 @@ PasswordStoreFactory::BuildServiceInstanceFor(
LOG(WARNING) << "Could not initialize password store.";
return nullptr;
}
+
+ password_manager::DelayCleanObsoleteHttpDataForPasswordStoreAndPrefs(
+ ps.get(), profile->GetPrefs(),
+ make_scoped_refptr(profile->GetRequestContext()));
+
return ps;
}

Powered by Google App Engine
This is Rietveld 408576698