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

Issue 16413002: Moved theme related state from BrowserInstantController to InstantService. (Closed)

Created:
7 years, 6 months ago by kmadhusu
Modified:
7 years, 6 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, mad+watch_chromium.org, gideonwald, dominich, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Visibility:
Public.

Description

Moved theme related state from BrowserInstantController to InstantService. Created InstantServiceObserver to define an observer interface for InstantService. Registered InstantController as an InstantServiceObserver to get theme change events. We no longer send theme changed events on tab switch. BUG=225760 TEST=Added an interactive ui test. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208023

Patch Set 1 : #

Patch Set 2 : '' #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : '' #

Total comments: 18

Patch Set 6 : Addressed comments #

Total comments: 10

Patch Set 7 : Rebase #

Patch Set 8 : Addressed comments #

Total comments: 2

Patch Set 9 : '' #

Total comments: 2

Patch Set 10 : '' #

Patch Set 11 : Rebase #

Patch Set 12 : #

Total comments: 4

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Patch Set 15 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -189 lines) Patch
M chrome/browser/search/instant_service.h View 1 2 3 4 5 6 7 6 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 2 3 4 5 6 7 7 chunks +116 lines, -1 line 0 comments Download
A chrome/browser/search/instant_service_observer.h View 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 5 chunks +1 line, -22 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +1 line, -120 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +28 lines, -15 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +105 lines, -27 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/instant_types.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/instant_types.cc View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/instant_extended.html View 1 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
kmadhusu
7 years, 6 months ago (2013-06-05 18:22:10 UTC) #1
kmadhusu
samarth@: This CL will fix the bug stated in crbug.com/225760. Need to change server side ...
7 years, 6 months ago (2013-06-14 19:07:59 UTC) #2
samarth
Change works as expected. No major comments below. Thanks! Samarth https://codereview.chromium.org/16413002/diff/84001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/16413002/diff/84001/chrome/browser/search/instant_service.cc#newcode151 ...
7 years, 6 months ago (2013-06-19 00:14:36 UTC) #3
kmadhusu
Addressed comments. PTAL. Thanks. https://chromiumcodereview.appspot.com/16413002/diff/84001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://chromiumcodereview.appspot.com/16413002/diff/84001/chrome/browser/search/instant_service.cc#newcode151 chrome/browser/search/instant_service.cc:151: if (!theme_info_.IsValid()) On 2013/06/19 00:14:36, ...
7 years, 6 months ago (2013-06-19 02:27:23 UTC) #4
samarth
https://codereview.chromium.org/16413002/diff/84001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/16413002/diff/84001/chrome/browser/search/instant_service.cc#newcode151 chrome/browser/search/instant_service.cc:151: if (!theme_info_.IsValid()) On 2013/06/19 02:27:24, kmadhusu wrote: > On ...
7 years, 6 months ago (2013-06-19 05:34:53 UTC) #5
kmadhusu
Addressed comments. PTAL. Thanks. https://codereview.chromium.org/16413002/diff/84001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/16413002/diff/84001/chrome/browser/search/instant_service.cc#newcode151 chrome/browser/search/instant_service.cc:151: if (!theme_info_.IsValid()) On 2013/06/19 05:34:54, ...
7 years, 6 months ago (2013-06-19 17:43:29 UTC) #6
samarth
https://codereview.chromium.org/16413002/diff/127001/chrome/browser/ui/search/search_tab_helper.h File chrome/browser/ui/search/search_tab_helper.h (right): https://codereview.chromium.org/16413002/diff/127001/chrome/browser/ui/search/search_tab_helper.h#newcode99 chrome/browser/ui/search/search_tab_helper.h:99: scoped_ptr<ThemeBackgroundInfo> last_known_theme_info_; As discussed offline, let's track this in ...
7 years, 6 months ago (2013-06-19 18:30:02 UTC) #7
kmadhusu
PTAL. Thanks. https://codereview.chromium.org/16413002/diff/127001/chrome/browser/ui/search/search_tab_helper.h File chrome/browser/ui/search/search_tab_helper.h (right): https://codereview.chromium.org/16413002/diff/127001/chrome/browser/ui/search/search_tab_helper.h#newcode99 chrome/browser/ui/search/search_tab_helper.h:99: scoped_ptr<ThemeBackgroundInfo> last_known_theme_info_; On 2013/06/19 18:30:02, samarth wrote: ...
7 years, 6 months ago (2013-06-19 21:31:01 UTC) #8
samarth
lgtm https://codereview.chromium.org/16413002/diff/152001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (left): https://codereview.chromium.org/16413002/diff/152001/chrome/browser/ui/search/instant_controller.cc#oldcode1087 chrome/browser/ui/search/instant_controller.cc:1087: void InstantController::ThemeChanged(const ThemeBackgroundInfo& theme_info) { Just undo this ...
7 years, 6 months ago (2013-06-19 22:37:15 UTC) #9
kmadhusu
https://codereview.chromium.org/16413002/diff/152001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (left): https://codereview.chromium.org/16413002/diff/152001/chrome/browser/ui/search/instant_controller.cc#oldcode1087 chrome/browser/ui/search/instant_controller.cc:1087: void InstantController::ThemeChanged(const ThemeBackgroundInfo& theme_info) { On 2013/06/19 22:37:15, samarth ...
7 years, 6 months ago (2013-06-20 01:21:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16413002/119004
7 years, 6 months ago (2013-06-20 17:23:35 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=128217
7 years, 6 months ago (2013-06-20 19:05:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16413002/119004
7 years, 6 months ago (2013-06-20 19:07:01 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=141016
7 years, 6 months ago (2013-06-20 21:31:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16413002/119004
7 years, 6 months ago (2013-06-20 21:39:18 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=53115
7 years, 6 months ago (2013-06-20 23:15:08 UTC) #16
kmadhusu
BrowserActionApiTest.IncognitoBasic and BrowserTest.DisableMenuItemsWhenIncognitoIsForced test were failing because the incognito profile was destroyed before BrowserInstantController. Made ...
7 years, 6 months ago (2013-06-21 02:22:18 UTC) #17
samarth
+Peter for OWNERS review for c/b/ui/browser.cc
7 years, 6 months ago (2013-06-21 02:28:38 UTC) #18
Peter Kasting
https://codereview.chromium.org/16413002/diff/185002/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/16413002/diff/185002/chrome/browser/ui/browser.cc#newcode487 chrome/browser/ui/browser.cc:487: instant_controller_.reset(); Check with erg/rlp on whether there's a better ...
7 years, 6 months ago (2013-06-21 02:33:29 UTC) #19
kmadhusu
https://codereview.chromium.org/16413002/diff/185002/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/16413002/diff/185002/chrome/browser/ui/browser.cc#newcode487 chrome/browser/ui/browser.cc:487: instant_controller_.reset(); rlp@: Is there any better way to indicate ...
7 years, 6 months ago (2013-06-21 02:49:39 UTC) #20
rpetterson
https://codereview.chromium.org/16413002/diff/185002/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/16413002/diff/185002/chrome/browser/ui/browser.cc#newcode487 chrome/browser/ui/browser.cc:487: instant_controller_.reset(); On 2013/06/21 02:49:39, kmadhusu wrote: > rlp@: Is ...
7 years, 6 months ago (2013-06-21 06:19:05 UTC) #21
kmadhusu
rpetterson@: Thanks. https://codereview.chromium.org/16413002/diff/185002/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/16413002/diff/185002/chrome/browser/ui/browser.cc#newcode487 chrome/browser/ui/browser.cc:487: instant_controller_.reset(); On 2013/06/21 06:19:06, rpetterson wrote: > ...
7 years, 6 months ago (2013-06-21 15:45:45 UTC) #22
kmadhusu
During our offline conversation, pkasting@ mentioned that he is not the right reviewer for the ...
7 years, 6 months ago (2013-06-21 15:53:57 UTC) #23
sky
browser.cc LGTM
7 years, 6 months ago (2013-06-21 16:34:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16413002/198001
7 years, 6 months ago (2013-06-21 16:36:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16413002/210001
7 years, 6 months ago (2013-06-21 20:44:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16413002/210001
7 years, 6 months ago (2013-06-22 02:29:39 UTC) #27
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/search/instant_controller.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-22 02:29:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16413002/223001
7 years, 6 months ago (2013-06-22 05:43:57 UTC) #29
commit-bot: I haz the power
7 years, 6 months ago (2013-06-22 13:49:18 UTC) #30
Message was sent while issue was closed.
Change committed as 208023

Powered by Google App Engine
This is Rietveld 408576698