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

Unified Diff: chrome/test/testing_profile.h

Issue 545175: Add the ability to save and remove AutoFill profiles from the AutoFillDialog.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/common/notification_type.h ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_profile.h
===================================================================
--- chrome/test/testing_profile.h (revision 36778)
+++ chrome/test/testing_profile.h (working copy)
@@ -50,6 +50,14 @@
// BlockUntilBookmarkModelLoaded.
void CreateBookmarkModel(bool delete_file);
+ // Creates the webdata service. If |delete_file| is true, the webdata file is
+ // deleted first, then the WebDataService is created. As TestingProfile
+ // deletes the directory containing the files used by WebDataService, this
+ // only matters if you're recreating the WebDataService.
+ void CreateWebDataService(bool delete_file);
+
+ // Destroys
+
// Blocks until the BookmarkModel finishes loaded. This is NOT invoked from
// CreateBookmarkModel.
void BlockUntilBookmarkModelLoaded();
@@ -115,10 +123,10 @@
return NULL;
}
virtual WebDataService* GetWebDataService(ServiceAccessType access) {
- return NULL;
+ return web_data_service_.get();
}
virtual WebDataService* GetWebDataServiceWithoutCreating() {
- return NULL;
+ return web_data_service_.get();
}
virtual PasswordStore* GetPasswordStore(ServiceAccessType access) {
return NULL;
@@ -236,6 +244,10 @@
// from the destructor.
void DestroyHistoryService();
+ // If the webdata service has been created, it is destroyed. This is invoked
+ // from the destructor.
+ void DestroyWebDataService();
+
// The history service. Only created if CreateHistoryService is invoked.
scoped_refptr<HistoryService> history_service_;
@@ -245,6 +257,9 @@
// The ProfileSyncService. Created by CreateProfileSyncService.
scoped_ptr<ProfileSyncService> profile_sync_service_;
+ // The WebDataService. Only created if CreateWebDataService is invoked.
+ scoped_refptr<WebDataService> web_data_service_;
+
// The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked.
scoped_ptr<TemplateURLModel> template_url_model_;
« no previous file with comments | « chrome/common/notification_type.h ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698