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

Issue 2788283002: Fix PrintPreviewDestinationSearchTest.Select (Closed)

Created:
3 years, 8 months ago by skau
Modified:
3 years, 8 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix PrintPreviewDestinationSearchTest.Select This reverts commit d2672f44f61002cfff2d7fd5a4bc70d54d903304. Uninitialized booleans are causing the test to crash when used to build a JSON string on the ASAN bot. Problem surfaced after clang was uprevved. BUG=702640 Review-Url: https://codereview.chromium.org/2788283002 Cr-Commit-Position: refs/heads/master@{#462312} Committed: https://chromium.googlesource.com/chromium/src/+/67d0cd0e97bb647deaf65a7adb3dfc76ff71dacc

Patch Set 1 #

Total comments: 4

Patch Set 2 : move init into constructor #

Patch Set 3 : update test #

Patch Set 4 : run the print preview test for CrOS only #

Patch Set 5 : test all platforms #

Total comments: 7

Patch Set 6 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -17 lines) Patch
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/print_preview_destination_search_test.js View 1 2 3 4 5 4 chunks +69 lines, -17 lines 0 comments Download

Messages

Total messages: 49 (28 generated)
skau
Please review. It looks like uninitialized booleans are now causing failures in the ASAN bot.
3 years, 8 months ago (2017-04-03 18:33:17 UTC) #6
skau
thestig: Can you take a look? thakis should probably review, but he's out today.
3 years, 8 months ago (2017-04-03 19:56:07 UTC) #9
Lei Zhang
https://codereview.chromium.org/2788283002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_ui.h File chrome/browser/ui/webui/print_preview/print_preview_ui.h (right): https://codereview.chromium.org/2788283002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_ui.h#newcode178 chrome/browser/ui/webui/print_preview/print_preview_ui.h:178: bool source_is_modifiable_ = false; This is also being set ...
3 years, 8 months ago (2017-04-03 20:32:42 UTC) #10
skau
Thanks for the review. I forgot to look at the ctor before making the change. ...
3 years, 8 months ago (2017-04-04 17:37:02 UTC) #13
Lei Zhang
Initializing |print_selection_only_| lgtm, but the test is still failing on trybots. :[
3 years, 8 months ago (2017-04-04 18:45:26 UTC) #16
skau
The recent change to the UI invalidated the test. I've fixed it now. I'll wait ...
3 years, 8 months ago (2017-04-04 21:06:31 UTC) #18
Lei Zhang
++lgtm
3 years, 8 months ago (2017-04-04 21:22:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2788283002/40001
3 years, 8 months ago (2017-04-04 21:39:09 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/398121)
3 years, 8 months ago (2017-04-04 22:19:26 UTC) #24
skau
Looks like the codepath for the non-CrOS platforms are no longer compatible. I'll need to ...
3 years, 8 months ago (2017-04-04 23:24:49 UTC) #27
Lei Zhang
Does it make sense to have a non-ChromeOS version of PrintPreviewDestinationSearchTest.Select as well?
3 years, 8 months ago (2017-04-04 23:29:45 UTC) #28
skau
There's some similarity between the ChromeOS and non-ChromeOS flow so I'm trying to see if ...
3 years, 8 months ago (2017-04-05 00:45:16 UTC) #29
skau
PTAL. I've update the test to verify behavior on all the platforms. The codepaths have ...
3 years, 8 months ago (2017-04-05 21:43:01 UTC) #34
skau
PTAL. I've update the test to verify behavior on all the platforms. The codepaths have ...
3 years, 8 months ago (2017-04-05 21:43:01 UTC) #35
skau
PTAL. I've update the test to verify behavior on all the platforms. The codepaths have ...
3 years, 8 months ago (2017-04-05 21:43:02 UTC) #36
Lei Zhang
https://codereview.chromium.org/2788283002/diff/80001/chrome/test/data/webui/print_preview_destination_search_test.js File chrome/test/data/webui/print_preview_destination_search_test.js (right): https://codereview.chromium.org/2788283002/diff/80001/chrome/test/data/webui/print_preview_destination_search_test.js#newcode104 chrome/test/data/webui/print_preview_destination_search_test.js:104: if (!cr.isChromeOS) { If it's all the same, put ...
3 years, 8 months ago (2017-04-05 21:54:32 UTC) #37
skau
Comments addressed. PTAL. https://codereview.chromium.org/2788283002/diff/80001/chrome/test/data/webui/print_preview_destination_search_test.js File chrome/test/data/webui/print_preview_destination_search_test.js (right): https://codereview.chromium.org/2788283002/diff/80001/chrome/test/data/webui/print_preview_destination_search_test.js#newcode104 chrome/test/data/webui/print_preview_destination_search_test.js:104: if (!cr.isChromeOS) { On 2017/04/05 21:54:31, ...
3 years, 8 months ago (2017-04-05 23:41:09 UTC) #41
Lei Zhang
lgtm += 2? https://codereview.chromium.org/2788283002/diff/80001/chrome/test/data/webui/print_preview_destination_search_test.js File chrome/test/data/webui/print_preview_destination_search_test.js (right): https://codereview.chromium.org/2788283002/diff/80001/chrome/test/data/webui/print_preview_destination_search_test.js#newcode236 chrome/test/data/webui/print_preview_destination_search_test.js:236: if (cr.isChromeOS) { On 2017/04/05 23:41:09, ...
3 years, 8 months ago (2017-04-05 23:46:05 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2788283002/100001
3 years, 8 months ago (2017-04-06 00:00:35 UTC) #45
skau
Logged crbug.com/708834 to address the behavior in print preview.
3 years, 8 months ago (2017-04-06 00:17:08 UTC) #46
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 01:37:31 UTC) #49
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/67d0cd0e97bb647deaf65a7adb3d...

Powered by Google App Engine
This is Rietveld 408576698