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

Unified Diff: chrome/browser/ui/intents/intents_model.cc

Issue 7930002: Rename WebIntentData for backend storage to WebIntentServiceData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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/ui/intents/intents_model.cc
diff --git a/chrome/browser/ui/intents/intents_model.cc b/chrome/browser/ui/intents/intents_model.cc
index 4aa09112f47be05450f76aa9a024f3a0370523c3..294eeaa896e2b0200e0c9337255a98451260af1d 100644
--- a/chrome/browser/ui/intents/intents_model.cc
+++ b/chrome/browser/ui/intents/intents_model.cc
@@ -120,20 +120,20 @@ void IntentsModel::LoadModel() {
void IntentsModel::OnIntentsQueryDone(
WebIntentsRegistry::QueryID query_id,
- const std::vector<WebIntentData>& intents) {
- for (size_t i = 0; i < intents.size(); ++i) {
+ const std::vector<WebIntentServiceData>& services) {
+ for (size_t i = 0; i < services.size(); ++i) {
// Eventually do some awesome sorting, grouping, clustering stuff here.
// For now, just stick it in the model flat.
IntentsTreeNode* n = new IntentsTreeNode(ASCIIToUTF16(
- intents[i].service_url.host()));
+ services[i].service_url.host()));
ServiceTreeNode* ns = new ServiceTreeNode(ASCIIToUTF16(
- intents[i].service_url.host()));
- ns->SetServiceName(intents[i].title);
- ns->SetServiceUrl(ASCIIToUTF16(intents[i].service_url.spec()));
- GURL icon_url = intents[i].service_url.GetOrigin().Resolve("/favicon.ico");
+ services[i].service_url.host()));
+ ns->SetServiceName(services[i].title);
+ ns->SetServiceUrl(ASCIIToUTF16(services[i].service_url.spec()));
+ GURL icon_url = services[i].service_url.GetOrigin().Resolve("/favicon.ico");
ns->SetIconUrl(ASCIIToUTF16(icon_url.spec()));
- ns->SetAction(intents[i].action);
- ns->AddType(intents[i].type);
+ ns->SetAction(services[i].action);
+ ns->AddType(services[i].type);
// Won't generate a notification. OK for now as the next line will.
n->Add(ns, 0);
Add(GetRoot(), n, GetRoot()->child_count());

Powered by Google App Engine
This is Rietveld 408576698