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

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

Issue 7624012: First pass on intents options UI. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Get rid of message-passing changes. Created 9 years, 4 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: 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 03060ed0ffc94635b691a041e012ace1635b071a..137904e2ce2d92222a01a40d2b02d257de6e1fb2 100644
--- a/chrome/browser/webdata/web_intents_table.cc
+++ b/chrome/browser/webdata/web_intents_table.cc
@@ -48,7 +48,7 @@ bool WebIntentsTable::GetWebIntents(const string16& action,
std::vector<WebIntentData>* intents) {
DCHECK(intents);
sql::Statement s(db_->GetUniqueStatement(
- "SELECT service_url, action, type FROM web_intents "
+ "SELECT service_url, action, type, title FROM web_intents "
"WHERE action=?"));
if (!s) {
NOTREACHED() << "Statement prepare failed";
@@ -63,6 +63,7 @@ bool WebIntentsTable::GetWebIntents(const string16& action,
intent.action = s.ColumnString16(1);
intent.type = s.ColumnString16(2);
+ intent.title = s.ColumnString16(3);
intents->push_back(intent);
}
@@ -72,7 +73,7 @@ bool WebIntentsTable::GetWebIntents(const string16& action,
bool WebIntentsTable::GetAllWebIntents(std::vector<WebIntentData>* intents) {
DCHECK(intents);
sql::Statement s(db_->GetUniqueStatement(
- "SELECT service_url, action, type FROM web_intents"));
+ "SELECT service_url, action, type, title FROM web_intents"));
if (!s) {
NOTREACHED() << "Statement prepare failed";
return false;
@@ -85,6 +86,7 @@ bool WebIntentsTable::GetAllWebIntents(std::vector<WebIntentData>* intents) {
intent.action = s.ColumnString16(1);
intent.type = s.ColumnString16(2);
+ intent.title = s.ColumnString16(3);
intents->push_back(intent);
}
@@ -124,4 +126,3 @@ bool WebIntentsTable::RemoveWebIntent(const WebIntentData& intent) {
s.BindString16(2, intent.type);
return s.Run();
}
-

Powered by Google App Engine
This is Rietveld 408576698