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

Unified Diff: chrome/browser/profiles/profile.h

Issue 7031038: Protect against NULL PasswordStore (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment; Check for NULL PasswordStore in TestingAutomationProvider. Created 9 years, 7 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/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 076dc96a9030d7598f8fc4380393c625c5cfb719..37d2c5a065348cee48bbe4bd6ffb34842d4924fa 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -297,6 +297,8 @@ class Profile {
virtual WebDataService* GetWebDataServiceWithoutCreating() = 0;
// Returns the PasswordStore for this profile. This is owned by the Profile.
+ // This may return NULL if the implementation is unable to create a
+ // password store (e.g. a corrupt database).
virtual PasswordStore* GetPasswordStore(ServiceAccessType access) = 0;
// Retrieves a pointer to the PrefService that manages the preferences

Powered by Google App Engine
This is Rietveld 408576698