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

Unified Diff: components/password_manager/core/browser/login_database.h

Issue 838453003: Open the LoginDatabase on the DB thread, not the UI thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac namespace fixes. Created 5 years, 11 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: components/password_manager/core/browser/login_database.h
diff --git a/components/password_manager/core/browser/login_database.h b/components/password_manager/core/browser/login_database.h
index d348c26f13818c370614c9b57b75cd3f0601bf6e..bb74de5b03a8608526f5e6462d30c7325125bb67 100644
--- a/components/password_manager/core/browser/login_database.h
+++ b/components/password_manager/core/browser/login_database.h
@@ -102,6 +102,9 @@ class LoginDatabase {
// whether further use of this login database will succeed is unspecified.
bool DeleteAndRecreateDatabaseFile();
+ // Simulates a failure in the Init() method of any instance. Used for testing.
+ static void set_simulate_init_failure_for_testing(bool fail);
Garrett Casto 2015/01/14 08:50:22 What do you think of instead of adding this field,
engedy 2015/01/14 14:36:54 Sounds great, actually, I did not like the current
+
private:
// Result values for encryption/decryption actions.
enum EncryptionResult {

Powered by Google App Engine
This is Rietveld 408576698