| Index: chrome/browser/webdata/web_intents_table.cc
|
| diff --git a/chrome/browser/webdata/web_intents_table.cc b/chrome/browser/webdata/web_intents_table.cc
|
| index df7ec284c044c75f3a16b41247d0ca2501ea9e15..825ffe435bacf01c28a7a9424111e03020ec4b81 100644
|
| --- a/chrome/browser/webdata/web_intents_table.cc
|
| +++ b/chrome/browser/webdata/web_intents_table.cc
|
| @@ -85,6 +85,24 @@ bool WebIntentsTable::GetWebIntents(
|
| return ExtractIntents(&s, intents);
|
| }
|
|
|
| +bool WebIntentsTable::GetWebIntentsForURL(
|
| + const string16& action,
|
| + const string16& service_url,
|
| + std::vector<WebIntentServiceData>* intents) {
|
| + DCHECK(intents);
|
| + sql::Statement s(db_->GetUniqueStatement(
|
| + "SELECT service_url, action, type, title, disposition FROM web_intents "
|
| + "WHERE action=? AND service_url=?"));
|
| + if (!s) {
|
| + NOTREACHED() << "Statement prepare failed";
|
| + return false;
|
| + }
|
| +
|
| + s.BindString16(0, action);
|
| + s.BindString16(1, service_url);
|
| + return ExtractIntents(&s, intents);
|
| +}
|
| +
|
| bool WebIntentsTable::GetAllWebIntents(
|
| std::vector<WebIntentServiceData>* intents) {
|
| DCHECK(intents);
|
|
|