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

Issue 14805004: InstantExtended: Prevent spurious themechanged/mostvisitedchanged events (Closed)

Created:
7 years, 7 months ago by Anuj
Modified:
7 years, 7 months ago
Reviewers:
samarth, sreeram
CC:
chromium-reviews, melevin, dhollowa+watch_chromium.org, dougw+watch_chromium.org, sreeram, gideonwald, dominich, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered, dcblack
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

InstantExtended: Prevent spurious themechanged/mostvisitedchanged events Detect whether the ThemeBackgroundInfo and MostVisitedItems have really changed. R=samarth@chromium.org BUG=225760 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198512

Patch Set 1 : Prevent event triggers from searchbox #

Total comments: 4

Patch Set 2 : Use Did<item>Change methods #

Total comments: 3

Patch Set 3 : Use namespace methods #

Total comments: 2

Patch Set 4 : Use Equal check, not changed #

Total comments: 6

Patch Set 5 : Addressed last set of comments #

Total comments: 6

Patch Set 6 : Typos again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M chrome/common/instant_types.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 3 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Anuj
7 years, 7 months ago (2013-05-03 06:14:25 UTC) #1
sreeram
This is not right. There are many ways you could open an NTP in the ...
7 years, 7 months ago (2013-05-03 06:26:11 UTC) #2
samarth
On 2013/05/03 06:26:11, sreeram wrote: > This is not right. There are many ways you ...
7 years, 7 months ago (2013-05-03 17:05:36 UTC) #3
samarth
Just tried out your patch and it works great! Thanks, Samarth https://codereview.chromium.org/14805004/diff/7001/chrome/common/instant_types.h File chrome/common/instant_types.h (right): ...
7 years, 7 months ago (2013-05-03 21:24:42 UTC) #4
samarth
Actually to be consistent, I'd just add helper did-change? functions for both theme and most ...
7 years, 7 months ago (2013-05-03 21:25:55 UTC) #5
Anuj
On 2013/05/03 21:25:55, samarth wrote: > Actually to be consistent, I'd just add helper did-change? ...
7 years, 7 months ago (2013-05-03 22:03:41 UTC) #6
samarth
https://codereview.chromium.org/14805004/diff/13001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/14805004/diff/13001/chrome/renderer/searchbox/searchbox.cc#newcode334 chrome/renderer/searchbox/searchbox.cc:334: bool SearchBox::DidThemeInfoChange(const ThemeBackgroundInfo& theme_info) { nit: Please move the ...
7 years, 7 months ago (2013-05-03 22:18:44 UTC) #7
samarth
lgtm https://codereview.chromium.org/14805004/diff/19001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/14805004/diff/19001/chrome/renderer/searchbox/searchbox.cc#newcode43 chrome/renderer/searchbox/searchbox.cc:43: bool DidMostVisitedItemsChange( Sorry for the back and forth, ...
7 years, 7 months ago (2013-05-04 00:41:54 UTC) #8
Anuj
https://codereview.chromium.org/14805004/diff/19001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/14805004/diff/19001/chrome/renderer/searchbox/searchbox.cc#newcode43 chrome/renderer/searchbox/searchbox.cc:43: bool DidMostVisitedItemsChange( On 2013/05/04 00:41:54, samarth wrote: > Sorry ...
7 years, 7 months ago (2013-05-04 01:00:01 UTC) #9
samarth
slgtm Thanks! Samarth
7 years, 7 months ago (2013-05-04 01:09:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skanuj@chromium.org/14805004/23001
7 years, 7 months ago (2013-05-04 01:27:33 UTC) #11
sreeram
A couple of nits below. https://chromiumcodereview.appspot.com/14805004/diff/23001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://chromiumcodereview.appspot.com/14805004/diff/23001/chrome/renderer/searchbox/searchbox.cc#newcode50 chrome/renderer/searchbox/searchbox.cc:50: InstantMostVisitedItem new_item = items[i].second; ...
7 years, 7 months ago (2013-05-05 02:19:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skanuj@chromium.org/14805004/23001
7 years, 7 months ago (2013-05-05 06:44:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skanuj@chromium.org/14805004/42001
7 years, 7 months ago (2013-05-06 11:36:23 UTC) #14
sreeram
https://chromiumcodereview.appspot.com/14805004/diff/42001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://chromiumcodereview.appspot.com/14805004/diff/42001/chrome/renderer/searchbox/searchbox.cc#newcode44 chrome/renderer/searchbox/searchbox.cc:44: const std::vector<InstantMostVisitedItemIDPair>& new_tems, Typo: new_tems -> new_items https://chromiumcodereview.appspot.com/14805004/diff/42001/chrome/renderer/searchbox/searchbox.cc#newcode49 chrome/renderer/searchbox/searchbox.cc:49: ...
7 years, 7 months ago (2013-05-06 14:31:55 UTC) #15
Anuj
https://chromiumcodereview.appspot.com/14805004/diff/23001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://chromiumcodereview.appspot.com/14805004/diff/23001/chrome/renderer/searchbox/searchbox.cc#newcode50 chrome/renderer/searchbox/searchbox.cc:50: InstantMostVisitedItem new_item = items[i].second; On 2013/05/05 02:19:12, sreeram wrote: ...
7 years, 7 months ago (2013-05-06 17:44:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skanuj@chromium.org/14805004/56001
7 years, 7 months ago (2013-05-06 17:45:22 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skanuj@chromium.org/14805004/56001
7 years, 7 months ago (2013-05-06 17:52:05 UTC) #18
sreeram
lgtm
7 years, 7 months ago (2013-05-06 17:53:59 UTC) #19
commit-bot: I haz the power
7 years, 7 months ago (2013-05-06 19:53:02 UTC) #20
Message was sent while issue was closed.
Change committed as 198512

Powered by Google App Engine
This is Rietveld 408576698