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

Side by Side Diff: chrome/browser/history/android/android_provider_backend.cc

Issue 1133463005: Update all bookmarks which use an icon URL when a favicon's bitmap is updated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startup_do_not_unexpire
Patch Set: Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/history/android/android_provider_backend_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/history/android/android_provider_backend.h" 5 #include "chrome/browser/history/android/android_provider_backend.h"
6 6
7 #include "base/i18n/case_conversion.h" 7 #include "base/i18n/case_conversion.h"
8 #include "chrome/browser/history/android/bookmark_model_sql_handler.h" 8 #include "chrome/browser/history/android/bookmark_model_sql_handler.h"
9 #include "components/history/core/browser/android/android_time.h" 9 #include "components/history/core/browser/android/android_time.h"
10 #include "components/history/core/browser/android/android_urls_sql_handler.h" 10 #include "components/history/core/browser/android/android_urls_sql_handler.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 if (row.last_visit_time().ToInternalValue() - 109 if (row.last_visit_time().ToInternalValue() -
110 row.created().ToInternalValue() < row.visit_count()) 110 row.created().ToInternalValue() < row.visit_count())
111 return false; 111 return false;
112 } 112 }
113 } 113 }
114 return true; 114 return true;
115 } 115 }
116 116
117 void RunNotifyFaviconChanged(HistoryBackendNotifier* notifier, 117 void RunNotifyFaviconChanged(HistoryBackendNotifier* notifier,
118 scoped_ptr<std::set<GURL>> urls) { 118 scoped_ptr<std::set<GURL>> urls) {
119 notifier->NotifyFaviconChanged(*(urls.get())); 119 notifier->NotifyFaviconsChanged(*(urls.get()), GURL());
120 } 120 }
121 121
122 void RunNotifyURLsModified(HistoryBackendNotifier* notifier, 122 void RunNotifyURLsModified(HistoryBackendNotifier* notifier,
123 scoped_ptr<URLRows> rows) { 123 scoped_ptr<URLRows> rows) {
124 notifier->NotifyURLsModified(*(rows.get())); 124 notifier->NotifyURLsModified(*(rows.get()));
125 } 125 }
126 126
127 void RunNotifyURLsDeleted(HistoryBackendNotifier* notifier, 127 void RunNotifyURLsDeleted(HistoryBackendNotifier* notifier,
128 scoped_ptr<URLRows> rows) { 128 scoped_ptr<URLRows> rows) {
129 notifier->NotifyURLsDeleted(false /* all_history */, 129 notifier->NotifyURLsDeleted(false /* all_history */,
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 return false; 1251 return false;
1252 1252
1253 if (!history_db_->SetKeywordSearchTermsForURL(bookmark_row.url_id(), 1253 if (!history_db_->SetKeywordSearchTermsForURL(bookmark_row.url_id(),
1254 values.keyword_id(), values.search_term())) 1254 values.keyword_id(), values.search_term()))
1255 return false; 1255 return false;
1256 } 1256 }
1257 return true; 1257 return true;
1258 } 1258 }
1259 1259
1260 } // namespace history 1260 } // namespace history
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/android/android_provider_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698