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

Unified Diff: chrome/browser/ui/search_engines/keyword_editor_controller.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/search_engines/keyword_editor_controller.cc
===================================================================
--- chrome/browser/ui/search_engines/keyword_editor_controller.cc (revision 130285)
+++ chrome/browser/ui/search_engines/keyword_editor_controller.cc (working copy)
@@ -63,10 +63,7 @@
// Don't do anything if the entry didn't change.
if ((template_url->short_name() == title) &&
- (template_url->keyword() == keyword) &&
- ((url.empty() && !template_url->url()) ||
- (!url.empty() && template_url->url() &&
- template_url->url()->url() == url)))
+ (template_url->keyword() == keyword) && (template_url->url() == url))
return;
table_model_->ModifyTemplateURL(index, title, keyword, url);

Powered by Google App Engine
This is Rietveld 408576698