commit | 1ea9ee9041aa592483b816b92ad052e845405d7d | [log] [tgz] |
---|---|---|
author | Antonio Gomes <tonikitoo@igalia.com> | Fri Feb 08 13:12:57 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 08 13:12:57 2019 |
tree | 044d2c1fdcd780f1975b0aa0e108003df55a49d3 | |
parent | 194fea620e1c1861193d53ff817b313f6a2b0a9a [diff] |
Implement IdentityManager::StartObservingCookieChanges API CL implements IdentityManager::StartObservingCookieChanges as a wrapper to GaiaCookieManagerService::InitCookieListener API. As for the unittest, the following was done: - Removed the call to GCMS::InitCookieListener() from IdentityManagerTest ctor. Reason: up to this point, all existing tests pass without this method being invoked, given that no calls to GCMS::OnCookieChange() were actually coming from network::CookieManager through mojo (GCMS inherits from network::mojom::CookieChangeListener). Instead SimulateCookieDeletedByUser() was being used to call GCMS::OnCookieChange(). - Actually calls GCMS::InitCookieListener() from the newly added IdentityManagerTest.StartObservingCookieChanges test, though the newly added IdentityManager::StartObservingCookieChanges API. From this test, dispatch a cookie change through the mojo pipe with a known cause, so that the test blocks on the expected IdentityManager observer call (OnAccountsCookieDeletedByUserAction). BUG=926864 Change-Id: I88d4499831e80252716a605e2fa346b73d5289d6 Reviewed-on: https://chromium-review.googlesource.com/c/1460016 Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Reviewed-by: Colin Blundell <blundell@chromium.org> Reviewed-by: David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#630292}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .