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

Issue 164193005: Refactors the auto-launch logic and adds tests for it. (Closed)

Created:
6 years, 10 months ago by Jun Mukai
Modified:
6 years, 10 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Refactors the auto-launch logic and adds tests for it. Previously multiple views control 'auto-launch' status which is complicated and not test-friendly. This CL separates the roles: - SearchResultListView updates the auto-launch status based on the current settings. It can cancel by itself. - SearchBoxView is responsible to cancel the auto-launch when the contents has changed. - ContentsView still needs to ping SearchResultListView to update the auto-launch state, because only it knows the current show state. BUG=341926 R=xiyuan@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251498

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebase #

Patch Set 3 : fix #

Patch Set 4 : fix for comments #

Patch Set 5 : re-upload #

Patch Set 6 : fix win error #

Patch Set 7 : fix win error 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+453 lines, -68 lines) Patch
M ui/app_list/app_list.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M ui/app_list/views/contents_view.h View 2 chunks +0 lines, -3 lines 0 comments Download
M ui/app_list/views/contents_view.cc View 5 chunks +7 lines, -21 lines 0 comments Download
M ui/app_list/views/search_box_view.h View 4 chunks +8 lines, -9 lines 0 comments Download
M ui/app_list/views/search_box_view.cc View 3 chunks +2 lines, -2 lines 0 comments Download
A ui/app_list/views/search_box_view_unittest.cc View 1 2 3 4 5 6 1 chunk +163 lines, -0 lines 0 comments Download
M ui/app_list/views/search_result_list_view.h View 1 2 3 3 chunks +22 lines, -8 lines 0 comments Download
M ui/app_list/views/search_result_list_view.cc View 1 2 8 chunks +46 lines, -22 lines 0 comments Download
A ui/app_list/views/search_result_list_view_unittest.cc View 1 2 3 1 chunk +189 lines, -0 lines 0 comments Download
M ui/app_list/views/search_result_view_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Jun Mukai
6 years, 10 months ago (2014-02-14 02:45:20 UTC) #1
xiyuan
https://codereview.chromium.org/164193005/diff/1/ui/app_list/views/search_box_view_unittest.cc File ui/app_list/views/search_box_view_unittest.cc (right): https://codereview.chromium.org/164193005/diff/1/ui/app_list/views/search_box_view_unittest.cc#newcode70 ui/app_list/views/search_box_view_unittest.cc:70: // Sets a long timeout to make sure the ...
6 years, 10 months ago (2014-02-14 04:55:55 UTC) #2
Jun Mukai
https://codereview.chromium.org/164193005/diff/1/ui/app_list/views/search_box_view_unittest.cc File ui/app_list/views/search_box_view_unittest.cc (right): https://codereview.chromium.org/164193005/diff/1/ui/app_list/views/search_box_view_unittest.cc#newcode70 ui/app_list/views/search_box_view_unittest.cc:70: // Sets a long timeout to make sure the ...
6 years, 10 months ago (2014-02-14 19:17:27 UTC) #3
xiyuan
lgtm
6 years, 10 months ago (2014-02-14 19:23:55 UTC) #4
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 10 months ago (2014-02-14 19:28:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/164193005/150001
6 years, 10 months ago (2014-02-14 19:30:52 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 19:52:11 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-14 19:52:12 UTC) #8
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 10 months ago (2014-02-14 20:24:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/164193005/480001
6 years, 10 months ago (2014-02-14 20:25:18 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 20:49:11 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 10 months ago (2014-02-14 20:49:12 UTC) #12
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 10 months ago (2014-02-14 20:50:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/164193005/640001
6 years, 10 months ago (2014-02-14 20:51:14 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-15 03:46:28 UTC) #15
Message was sent while issue was closed.
Change committed as 251498

Powered by Google App Engine
This is Rietveld 408576698