|
|
Created:
3 years, 10 months ago by Marc Treib Modified:
3 years, 10 months ago Reviewers:
jkrcal CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionDon't instantiate ContentSuggestionsService on non-Android
BUG=688366
Review-Url: https://codereview.chromium.org/2686053002
Cr-Commit-Position: refs/heads/master@{#449293}
Committed: https://chromium.googlesource.com/chromium/src/+/c18c1ca3ce39b15464102d92a15367b0e5a89ac7
Patch Set 1 #Patch Set 2 : fix the build #Patch Set 3 : Add browsertest #
Messages
Total messages: 26 (14 generated)
The CQ bit was checked by treib@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
treib@chromium.org changed reviewers: + jkrcal@chromium.org
is there a nice way we can test this? E.g. making sure that we get nullptr on Desktop?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
On 2017/02/09 11:02:18, tschumann wrote: > is there a nice way we can test this? E.g. making sure that we get nullptr on > Desktop? I suppose we could add a browser test for the factory. I'll look into that.
Is it intentional that this does not touch iOS? (I think it is what we want, just wanted to make sure) I think we should also return nullptr if the kContentSuggestionsSource feature (the main Zine feature) is disabled. Strangely, we never use that feature at the moment. As regards iOS, I suggest to switch the main feature and the articles feature on Beta/Stable using field trial for all non-Android platforms, including iOS.
The CQ bit was checked by treib@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/02/09 13:06:30, jkrcal wrote: > Is it intentional that this does not touch iOS? > (I think it is what we want, just wanted to make sure) Yup, that's intentional. iOS is actively being worked on now, so I don't think we want to disable things there. > I think we should also return nullptr if the kContentSuggestionsSource feature > (the main Zine feature) is disabled. Strangely, we never use that feature at the > moment. Hm. I think the plan was to get rid of that feature. Do you think we should keep it around as an emergency switch? I'm not sure if that's a good idea, since that code path would get zero test coverage... (so chances are, if we ever need that emergency switch, then we'd get nullptr crashes somewhere else). > As regards iOS, I suggest to switch the main feature and the articles feature on > Beta/Stable using field trial for all non-Android platforms, including iOS. ...I don't follow?
On 2017/02/09 at 13:14:17, treib wrote: > On 2017/02/09 13:06:30, jkrcal wrote: > > Is it intentional that this does not touch iOS? > > (I think it is what we want, just wanted to make sure) > > Yup, that's intentional. iOS is actively being worked on now, so I don't think we want to disable things there. > > > I think we should also return nullptr if the kContentSuggestionsSource feature > > (the main Zine feature) is disabled. Strangely, we never use that feature at the > > moment. > > Hm. I think the plan was to get rid of that feature. Do you think we should keep it around as an emergency switch? I'm not sure if that's a good idea, since that code path would get zero test coverage... (so chances are, if we ever need that emergency switch, then we'd get nullptr crashes somewhere else). Well, we anyway get nullptr for - non-Android platform, - incognito profiles. Isn't this fair enough to make sure test-coverage is there? > > As regards iOS, I suggest to switch the main feature and the articles feature on > > Beta/Stable using field trial for all non-Android platforms, including iOS. > > ...I don't follow? Well, we want to make sure we do not fetch suggestions (or do any other funky background work) on non-Android platforms, incl. iOS, before we truly launch there. We cannot use an #ifdef on iOS because this would complicate developments. Using the main feature switch on other platforms on non-dev channels would address this issue, IMO.
On 2017/02/09 13:31:26, jkrcal wrote: > On 2017/02/09 at 13:14:17, treib wrote: > > On 2017/02/09 13:06:30, jkrcal wrote: > > > Is it intentional that this does not touch iOS? > > > (I think it is what we want, just wanted to make sure) > > > > Yup, that's intentional. iOS is actively being worked on now, so I don't think > we want to disable things there. > > > > > I think we should also return nullptr if the kContentSuggestionsSource > feature > > > (the main Zine feature) is disabled. Strangely, we never use that feature at > the > > > moment. > > > > Hm. I think the plan was to get rid of that feature. Do you think we should > keep it around as an emergency switch? I'm not sure if that's a good idea, since > that code path would get zero test coverage... (so chances are, if we ever need > that emergency switch, then we'd get nullptr crashes somewhere else). > > Well, we anyway get nullptr for > - non-Android platform, > - incognito profiles. > > Isn't this fair enough to make sure test-coverage is there? The Android, non-incognito UI probably won't have coverage for the service-is-null case. > > > As regards iOS, I suggest to switch the main feature and the articles > feature on > > > Beta/Stable using field trial for all non-Android platforms, including iOS. > > > > ...I don't follow? > > Well, we want to make sure we do not fetch suggestions (or do any other funky > background work) on non-Android platforms, incl. iOS, before we truly launch > there. > We cannot use an #ifdef on iOS because this would complicate developments. Using > the main feature switch on other platforms on non-dev channels would address > this issue, IMO. Ah, now I understand. iOS will require a feature anyway to turn the new UI on or off. And this main feature is probably just the right thing for that. But instead of configuring that via Finch, I'd just make it disabled-by-default on iOS. Whether the factory should also return nullptr in that case is a separate discussion; let's keep that for another CL :) Also: PTAL again. There's even a test now!
The CQ bit was checked by treib@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/02/09 at 13:45:29, treib wrote: > On 2017/02/09 13:31:26, jkrcal wrote: > > On 2017/02/09 at 13:14:17, treib wrote: > > > On 2017/02/09 13:06:30, jkrcal wrote: > > > > Is it intentional that this does not touch iOS? > > > > (I think it is what we want, just wanted to make sure) > > > > > > Yup, that's intentional. iOS is actively being worked on now, so I don't think > > we want to disable things there. > > > > > > > I think we should also return nullptr if the kContentSuggestionsSource > > feature > > > > (the main Zine feature) is disabled. Strangely, we never use that feature at > > the > > > > moment. > > > > > > Hm. I think the plan was to get rid of that feature. Do you think we should > > keep it around as an emergency switch? I'm not sure if that's a good idea, since > > that code path would get zero test coverage... (so chances are, if we ever need > > that emergency switch, then we'd get nullptr crashes somewhere else). > > > > Well, we anyway get nullptr for > > - non-Android platform, > > - incognito profiles. > > > > Isn't this fair enough to make sure test-coverage is there? > > The Android, non-incognito UI probably won't have coverage for the service-is-null case. > > > > > As regards iOS, I suggest to switch the main feature and the articles > > feature on > > > > Beta/Stable using field trial for all non-Android platforms, including iOS. > > > > > > ...I don't follow? > > > > Well, we want to make sure we do not fetch suggestions (or do any other funky > > background work) on non-Android platforms, incl. iOS, before we truly launch > > there. > > We cannot use an #ifdef on iOS because this would complicate developments. Using > > the main feature switch on other platforms on non-dev channels would address > > this issue, IMO. > > Ah, now I understand. > > iOS will require a feature anyway to turn the new UI on or off. And this main feature is probably just the right thing for that. But instead of configuring that via Finch, I'd just make it disabled-by-default on iOS. > Whether the factory should also return nullptr in that case is a separate discussion; let's keep that for another CL :) Okay. > > Also: PTAL again. There's even a test now! lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by treib@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1486653335102270, "parent_rev": "c53be51debc342c6b6cd8a3388fa80bbc472ad6f", "commit_rev": "c18c1ca3ce39b15464102d92a15367b0e5a89ac7"}
Message was sent while issue was closed.
Description was changed from ========== Don't instantiate ContentSuggestionsService on non-Android BUG=688366 ========== to ========== Don't instantiate ContentSuggestionsService on non-Android BUG=688366 Review-Url: https://codereview.chromium.org/2686053002 Cr-Commit-Position: refs/heads/master@{#449293} Committed: https://chromium.googlesource.com/chromium/src/+/c18c1ca3ce39b15464102d92a153... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/c18c1ca3ce39b15464102d92a153...
Message was sent while issue was closed.
nice! I assume you saw the test fail for desktop ;-) [I don't trust those #if defines...]
Message was sent while issue was closed.
On 2017/02/09 15:42:29, tschumann wrote: > nice! I assume you saw the test fail for desktop ;-) [I don't trust those #if > defines...] You mean, running the test without the new "#if"s? Yup, that fails. Interestingly, trying to instantiate ContentSuggestionsService on desktop crashed anyway, because we're trying to read some prefs that aren't registered. So the problem of the service getting created on desktop has been fixed; otherwise we would have gotten crash reports :) |