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

Unified Diff: chrome/browser/webdata/web_data_service_win.cc

Issue 12543034: Move creation of the various WebDatabaseTable types out of WebDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows release builds (COMDAT folding combined static functions being used for keys. Created 7 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
« no previous file with comments | « chrome/browser/webdata/web_data_service.cc ('k') | chrome/browser/webdata/web_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/web_data_service_win.cc
diff --git a/chrome/browser/webdata/web_data_service_win.cc b/chrome/browser/webdata/web_data_service_win.cc
index e0e1624869e557ee6c139733c5eb91b203f6ebe9..9d5eece17cf5b0e5ff3923b20894b770dff74939 100644
--- a/chrome/browser/webdata/web_data_service_win.cc
+++ b/chrome/browser/webdata/web_data_service_win.cc
@@ -30,14 +30,14 @@ WebDataService::Handle WebDataService::GetIE7Login(
WebDatabase::State WebDataService::AddIE7LoginImpl(
const IE7PasswordInfo& info, WebDatabase* db) {
- if (db->GetLoginsTable()->AddIE7Login(info))
+ if (LoginsTable::FromWebDatabase(db)->AddIE7Login(info))
return WebDatabase::COMMIT_NEEDED;
return WebDatabase::COMMIT_NOT_NEEDED;
}
WebDatabase::State WebDataService::RemoveIE7LoginImpl(
const IE7PasswordInfo& info, WebDatabase* db) {
- if (db->GetLoginsTable()->RemoveIE7Login(info))
+ if (LoginsTable::FromWebDatabase(db)->RemoveIE7Login(info))
return WebDatabase::COMMIT_NEEDED;
return WebDatabase::COMMIT_NOT_NEEDED;
}
@@ -45,7 +45,7 @@ WebDatabase::State WebDataService::RemoveIE7LoginImpl(
scoped_ptr<WDTypedResult> WebDataService::GetIE7LoginImpl(
const IE7PasswordInfo& info, WebDatabase* db) {
IE7PasswordInfo result;
- db->GetLoginsTable()->GetIE7Login(info, &result);
+ LoginsTable::FromWebDatabase(db)->GetIE7Login(info, &result);
return scoped_ptr<WDTypedResult>(
new WDResult<IE7PasswordInfo>(PASSWORD_IE7_RESULT, result));
}
« no previous file with comments | « chrome/browser/webdata/web_data_service.cc ('k') | chrome/browser/webdata/web_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698