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

Unified Diff: chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc

Issue 9968016: Move the URL string from TemplateURLRef onto the owning TemplateURL. This will make it easier to m… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/webui/omnibox/omnibox_ui_handler.cc
===================================================================
--- chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (revision 130285)
+++ chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (working copy)
@@ -116,10 +116,8 @@
it->is_history_what_you_typed_match);
output->SetString(item_prefix + ".type",
AutocompleteMatch::TypeToString(it->type));
- if ((it->template_url != NULL) && (it->template_url->url() != NULL)) {
- output->SetString(item_prefix + ".template_url",
- it->template_url->url()->url());
- }
+ if (it->template_url != NULL)
+ output->SetString(item_prefix + ".template_url", it->template_url->url());
output->SetBoolean(item_prefix + ".starred", it->starred);
output->SetBoolean(item_prefix + ".from_previous", it->from_previous);
}

Powered by Google App Engine
This is Rietveld 408576698