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

Unified Diff: ios/chrome/browser/ui/ntp/google_landing_mediator.mm

Issue 2923803002: Make possible to remove the last most visited tile (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/ntp/google_landing_mediator.mm
diff --git a/ios/chrome/browser/ui/ntp/google_landing_mediator.mm b/ios/chrome/browser/ui/ntp/google_landing_mediator.mm
index 47ae5c43e87f33a41bef14c82233d5e9dc833fc3..46028db36b0af43160b887b8a39893e8b3003911 100644
--- a/ios/chrome/browser/ui/ntp/google_landing_mediator.mm
+++ b/ios/chrome/browser/ui/ntp/google_landing_mediator.mm
@@ -383,11 +383,7 @@ void SearchEngineObserver::OnTemplateURLServiceChanged() {
#pragma mark - Private
- (void)useFreshData {
justincohen 2017/06/06 15:47:34 Did we also want a DCHECK to confirm that |freshMo
gambard 2017/06/06 16:19:23 It seems complicated for a little gain in my opini
- if (self.freshMostVisitedData.size() == 0) {
- return;
- }
_mostVisitedData = self.freshMostVisitedData;
- self.freshMostVisitedData.clear();
[self.consumer mostVisitedDataUpdated];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698