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

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

Issue 7930002: Rename WebIntentData for backend storage to WebIntentServiceData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix class/struct decl 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/web_intents_model.cc
diff --git a/chrome/browser/ui/intents/web_intents_model.cc b/chrome/browser/ui/intents/web_intents_model.cc
index da74bf31a309145e1339f760590ff1bee375afdb..abaf9f374f1a819a79dbd293ef3b26645bdd135b 100644
--- a/chrome/browser/ui/intents/web_intents_model.cc
+++ b/chrome/browser/ui/intents/web_intents_model.cc
@@ -121,20 +121,20 @@ void WebIntentsModel::LoadModel() {
void WebIntentsModel::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.
WebIntentsTreeNode* n = new WebIntentsTreeNode(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());
« no previous file with comments | « chrome/browser/ui/intents/web_intents_model.h ('k') | chrome/browser/ui/intents/web_intents_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698