Commit f2845f64 authored by lod's avatar lod Committed by Commit bot

Set unseen state of reading list before notifying observers.

Set unseen state of reading list before notifying observers.

BUG=NONE

Review URL: https://codereview.chromium.org/1810903002

Cr-Commit-Position: refs/heads/master@{#381698}
parent 2d1bfbd3
...@@ -88,10 +88,10 @@ const ReadingListEntry& ReadingListModelMemory::AddEntry( ...@@ -88,10 +88,10 @@ const ReadingListEntry& ReadingListModelMemory::AddEntry(
FOR_EACH_OBSERVER(ReadingListModelObserver, observers_, FOR_EACH_OBSERVER(ReadingListModelObserver, observers_,
ReadingListWillAddUnreadEntry(this, entry)); ReadingListWillAddUnreadEntry(this, entry));
unread_.insert(unread_.begin(), entry); unread_.insert(unread_.begin(), entry);
hasUnseen_ = true;
FOR_EACH_OBSERVER(ReadingListModelObserver, observers_, FOR_EACH_OBSERVER(ReadingListModelObserver, observers_,
ReadingListDidApplyChanges(this)); ReadingListDidApplyChanges(this));
hasUnseen_ = true;
return *unread_.begin(); return *unread_.begin();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment