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

Side by Side Diff: chrome/browser/password_manager/password_store_default.h

Issue 2866023: Linux: delete the unencrypted login database file after a successful password migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 std::vector<webkit_glue::PasswordForm*>* forms); 43 std::vector<webkit_glue::PasswordForm*>* forms);
44 bool FillBlacklistLogins( 44 bool FillBlacklistLogins(
45 std::vector<webkit_glue::PasswordForm*>* forms); 45 std::vector<webkit_glue::PasswordForm*>* forms);
46 46
47 scoped_refptr<WebDataService> web_data_service_; 47 scoped_refptr<WebDataService> web_data_service_;
48 48
49 // Implements the WebDataService consumer interface. 49 // Implements the WebDataService consumer interface.
50 void OnWebDataServiceRequestDone(WebDataService::Handle handle, 50 void OnWebDataServiceRequestDone(WebDataService::Handle handle,
51 const WDTypedResult *result); 51 const WDTypedResult *result);
52 52
53 protected:
54 inline bool DeleteAndRecreateDatabaseFile() {
55 return login_db_->DeleteAndRecreateDatabaseFile();
56 }
57
53 private: 58 private:
54 // Migrates logins from the WDS to the LoginDatabase. 59 // Migrates logins from the WDS to the LoginDatabase.
55 void MigrateIfNecessary(); 60 void MigrateIfNecessary();
56 61
57 scoped_ptr<LoginDatabase> login_db_; 62 scoped_ptr<LoginDatabase> login_db_;
58 Profile* profile_; 63 Profile* profile_;
59 64
60 std::set<WebDataService::Handle> handles_; 65 std::set<WebDataService::Handle> handles_;
61 66
62 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); 67 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault);
63 }; 68 };
64 69
65 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ 70 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/login_database.cc ('k') | chrome/browser/password_manager/password_store_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698