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

Unified Diff: chrome/browser/history/url_index_private_data.cc

Issue 9852002: Have URL Modifications sent Regardless of Typed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/history/url_index_private_data.cc
===================================================================
--- chrome/browser/history/url_index_private_data.cc (revision 131423)
+++ chrome/browser/history/url_index_private_data.cc (working copy)
@@ -356,7 +356,9 @@
// The url won't have changed but the title, visit count, etc.
// might have changed.
URLRow& row_to_update = row_pos->second;
- bool title_updated = row_to_update.title() != row.title();
+ // Ignore title changes where new title is empty. (See bug 102957.)
Peter Kasting 2012/04/10 02:18:57 Nit: Instead of referring to a bug, can you put a
mrossetti 2012/04/11 19:38:55 Removed the test for empty(). I cannot now recreat
+ bool title_updated = row_to_update.title() != row.title() &&
+ !row.title().empty();
if (row_to_update.visit_count() != row.visit_count() ||
row_to_update.typed_count() != row.typed_count() ||
row_to_update.last_visit() != row.last_visit() || title_updated) {

Powered by Google App Engine
This is Rietveld 408576698