diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-12 23:18:53 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-12 23:18:53 +0000 |
commit | 6f9101b53c73f0509a9dfb522b92d58791660825 (patch) | |
tree | a921aae8363538b6376b1af6a39f8d40350b0b44 /chrome/browser | |
parent | e38f40150dac6e0af08e3cdcfb1e502a2223c87c (diff) | |
download | chromium_src-6f9101b53c73f0509a9dfb522b92d58791660825.zip chromium_src-6f9101b53c73f0509a9dfb522b92d58791660825.tar.gz chromium_src-6f9101b53c73f0509a9dfb522b92d58791660825.tar.bz2 |
Fixes bug where history view was not showing star state correctly.
BUG=2117
TEST=See bug
Review URL: http://codereview.chromium.org/3027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/history_model.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/history_model.cc b/chrome/browser/history_model.cc index 638000c..5af38d6 100644 --- a/chrome/browser/history_model.cc +++ b/chrome/browser/history_model.cc @@ -251,10 +251,12 @@ void HistoryModel::VisitedPagesQueryComplete( is_search_results_ = !search_text_.empty(); - if (changed) + if (changed) { star_state_.reset(new StarState[results_.size()]); - if (changed && observer_) - observer_->ModelChanged(true); + memset(star_state_.get(), 0, sizeof(StarState) * results_.size()); + if (observer_) + observer_->ModelChanged(true); + } search_depth_++; |