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

Unified Diff: components/webdata/autofill/autofill_webdata_service.cc

Issue 13973004: Convert string16 -> base::string16 in components/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/webdata/autofill/autofill_webdata_service.cc
diff --git a/components/webdata/autofill/autofill_webdata_service.cc b/components/webdata/autofill/autofill_webdata_service.cc
index 60a47c0b838112172e14ab4ee308dd1876378c58..afdcab7ea0b7ef3dfa111d1a17a5fc5346f93664 100644
--- a/components/webdata/autofill/autofill_webdata_service.cc
+++ b/components/webdata/autofill/autofill_webdata_service.cc
@@ -52,7 +52,7 @@ void AutofillWebDataService::AddFormFields(
}
WebDataServiceBase::Handle AutofillWebDataService::GetFormValuesForElementName(
- const string16& name, const string16& prefix, int limit,
+ const base::string16& name, const base::string16& prefix, int limit,
WebDataServiceConsumer* consumer) {
return wdbs_->ScheduleDBTaskWithResult(FROM_HERE,
Bind(&AutofillWebDataService::GetFormValuesForElementNameImpl,
@@ -72,7 +72,7 @@ void AutofillWebDataService::RemoveExpiredFormElements() {
}
void AutofillWebDataService::RemoveFormValueForElementName(
- const string16& name, const string16& value) {
+ const base::string16& name, const base::string16& value) {
wdbs_->ScheduleDBTask(FROM_HERE,
Bind(&AutofillWebDataService::RemoveFormValueForElementNameImpl,
this, name, value));
@@ -199,13 +199,15 @@ WebDatabase::State AutofillWebDataService::AddFormElementsImpl(
scoped_ptr<WDTypedResult>
AutofillWebDataService::GetFormValuesForElementNameImpl(
- const string16& name, const string16& prefix, int limit, WebDatabase* db) {
+ const base::string16& name, const base::string16& prefix, int limit,
+ WebDatabase* db) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
- std::vector<string16> values;
+ std::vector<base::string16> values;
AutofillTable::FromWebDatabase(db)->GetFormValuesForElementName(
name, prefix, &values, limit);
return scoped_ptr<WDTypedResult>(
- new WDResult<std::vector<string16> >(AUTOFILL_VALUE_RESULT, values));
+ new WDResult<std::vector<base::string16> >(AUTOFILL_VALUE_RESULT,
+ values));
}
WebDatabase::State AutofillWebDataService::RemoveFormElementsAddedBetweenImpl(
@@ -249,7 +251,7 @@ WebDatabase::State AutofillWebDataService::RemoveExpiredFormElementsImpl(
}
WebDatabase::State AutofillWebDataService::RemoveFormValueForElementNameImpl(
- const string16& name, const string16& value, WebDatabase* db) {
+ const base::string16& name, const base::string16& value, WebDatabase* db) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
if (AutofillTable::FromWebDatabase(db)->RemoveFormElement(name, value)) {

Powered by Google App Engine
This is Rietveld 408576698