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

Issue 2708693002: Add DCHECK to make sure Profile instance is same. (Closed)

Created:
3 years, 10 months ago by hidehiko
Modified:
3 years, 10 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, tfarina, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, sync-reviews_chromium.org, Matt Giuca
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DCHECK to make sure Profile instance is same. The Profile instance owned by ArcAppListPrefs and ArcSessionManager::profile() must be same. This CL adds the DCHECK. During the test, it turned out that ARC is enabled for unexpected tests. As a result, ArcAppListPrefs is expected to be alive at most one instance (for Primary user Profile), but many instances are created. Such tests are not designed to use ARC, so disable ARC for them to pass them. The command_line flag is moved from sync_arc_package_helper.cc. However, tests using sync_arc_package_helper are currently failing (crbug.com/694261), and redesign looks needed. Thus, this CL leaves those tests as is. In future, probably with fixing the bug, the flag needs to be added there. BUG=694261 BUG=657687 BUG=b/31079732 TEST=Ran trybots. Review-Url: https://codereview.chromium.org/2708693002 Cr-Commit-Position: refs/heads/master@{#452366} Committed: https://chromium.googlesource.com/chromium/src/+/653559e3d446669fe50661afb09ffdc464a37c5c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M chrome/browser/sync/test/integration/sync_test.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 21 (10 generated)
hidehiko
While testing crrev.com/2702723002, I found a corner case. To split the concept from it, I ...
3 years, 10 months ago (2017-02-20 16:41:08 UTC) #6
xiyuan
lgtm
3 years, 10 months ago (2017-02-21 17:15:27 UTC) #7
lgcheng
+ Luis I think we intentionally make ArcAppListPrefs non-singleton to support SyncTest infrastructure.
3 years, 10 months ago (2017-02-21 17:30:26 UTC) #10
hidehiko
On 2017/02/21 17:30:26, lgcheng wrote: > + Luis > > I think we intentionally make ...
3 years, 10 months ago (2017-02-21 17:52:00 UTC) #11
skym
c/b/sync lgtm The TwoClient* sync integration tests do require that multiple profiles are running in ...
3 years, 10 months ago (2017-02-21 19:14:43 UTC) #12
skym
On 2017/02/21 19:14:43, skym wrote: > c/b/sync lgtm > > The TwoClient* sync integration tests ...
3 years, 10 months ago (2017-02-21 19:15:49 UTC) #13
Yusuke Sato
lgtm
3 years, 10 months ago (2017-02-21 20:31:46 UTC) #14
Yusuke Sato
(sorry for the delay. Monday was a US holiday.)
3 years, 10 months ago (2017-02-21 20:32:25 UTC) #15
hidehiko
Thank you for review. Submitting. > The TwoClient* sync integration tests do require that multiple ...
3 years, 10 months ago (2017-02-23 02:07:17 UTC) #16
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/2708693002/1
3 years, 10 months ago (2017-02-23 02:07:48 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 03:06:51 UTC) #21
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/653559e3d446669fe50661afb09f...

Powered by Google App Engine
This is Rietveld 408576698