|
|
DescriptionFix the snapshot_cache unittests.
This fix is necessary to enable by default the iPad tab switcher.
It is a partial reland of https://codereview.chromium.org/1725533004
This CL:
-Always register/deregister for notifications.
-Centralizes the logic to use a LRU cache.
-Centralizes the logic to use an in-memory cache.
-Replaces msarda with jif in OWNERS.
-Triggers memory warning instead of calling |handleLowMemory| from tests.
BUG=None
Committed: https://crrev.com/8eb38982d179e056b228269832582c1f2c998a3a
Cr-Commit-Position: refs/heads/master@{#427302}
Patch Set 1 #Patch Set 2 : 2 #
Total comments: 6
Patch Set 3 : Addressed comments. #Patch Set 4 : Rebased. #Patch Set 5 : Fixed test. #
Messages
Total messages: 40 (25 generated)
Description was changed from ========== Enable Tab Switcher by default. BUG=None ========== to ========== Enable Tab Switcher by default. BUG=None ==========
jif@chromium.org changed reviewers: + sdefresne@chromium.org
ptal (but don't commit)
lgtm
The CQ bit was checked by sdefresne@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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
Description was changed from ========== Enable Tab Switcher by default. BUG=None ========== to ========== Enable Tab Switcher by default. Reland of https://codereview.chromium.org/1725533004 Enabling the Tab Switcher by default required fixing the snapshot_cache unittests. In turn, this required fixing/cleaning the snapshot_cache: -Always register/deregister for notifications. -Centralize the logic to use a LRU cache. -Centralize the logic to use an in-memory cache. Other changes: -Replaced msarda with jif in OWNERS -Trigger memory warning instead of calling |handleLowMemory| from tests. BUG=None ==========
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by jif@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 2016/10/06 20:26:45, sdefresne wrote: > lgtm ptal again. please note that the patch is now an reland of https://codereview.chromium.org/1725533004 (minus the gyp change).
https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... File ios/chrome/browser/snapshots/snapshot_cache.mm (right): https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... ios/chrome/browser/snapshots/snapshot_cache.mm:567: if ([self usesLRUCache]) The test changed, is this expected? https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... File ios/chrome/browser/snapshots/snapshot_cache_unittest.mm (right): https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... ios/chrome/browser/snapshots/snapshot_cache_unittest.mm:199: // _performMemoryWarning is a private API and musn't be compiled into nit: musn't -> must not https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... ios/chrome/browser/snapshots/snapshot_cache_unittest.mm:221: if ([cache usesLRUCache]) This test changed too, is this expected?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Enable Tab Switcher by default. Reland of https://codereview.chromium.org/1725533004 Enabling the Tab Switcher by default required fixing the snapshot_cache unittests. In turn, this required fixing/cleaning the snapshot_cache: -Always register/deregister for notifications. -Centralize the logic to use a LRU cache. -Centralize the logic to use an in-memory cache. Other changes: -Replaced msarda with jif in OWNERS -Trigger memory warning instead of calling |handleLowMemory| from tests. BUG=None ========== to ========== Fix the snapshot_cache unittests. This fix is necessary to enable by default the tab switcher. It is a partial reland of https://codereview.chromium.org/1725533004 This CL: -Always register/deregister for notifications. -Centralizes the logic to use a LRU cache. -Centralizes the logic to use an in-memory cache. -Replaces msarda with jif in OWNERS -Triggers memory warning instead of calling |handleLowMemory| from tests. BUG=None ==========
ptal. I've reduced the scope of this CL: it now simply fixes the snapshot_cache unittests. https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... File ios/chrome/browser/snapshots/snapshot_cache.mm (right): https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... ios/chrome/browser/snapshots/snapshot_cache.mm:567: if ([self usesLRUCache]) On 2016/10/07 14:56:19, sdefresne wrote: > The test changed, is this expected? Yes. It is now correct: The LRU cache is used when IsLRUSnapshotCacheEnabled OR when the tab switcher is enabled. https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... File ios/chrome/browser/snapshots/snapshot_cache_unittest.mm (right): https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... ios/chrome/browser/snapshots/snapshot_cache_unittest.mm:199: // _performMemoryWarning is a private API and musn't be compiled into On 2016/10/07 14:56:19, sdefresne wrote: > nit: musn't -> must not Done. https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snap... ios/chrome/browser/snapshots/snapshot_cache_unittest.mm:221: if ([cache usesLRUCache]) On 2016/10/07 14:56:19, sdefresne wrote: > This test changed too, is this expected? Yes: same reason as in the other test.
Description was changed from ========== Fix the snapshot_cache unittests. This fix is necessary to enable by default the tab switcher. It is a partial reland of https://codereview.chromium.org/1725533004 This CL: -Always register/deregister for notifications. -Centralizes the logic to use a LRU cache. -Centralizes the logic to use an in-memory cache. -Replaces msarda with jif in OWNERS -Triggers memory warning instead of calling |handleLowMemory| from tests. BUG=None ========== to ========== Fix the snapshot_cache unittests. This fix is necessary to enable by default the iPad tab switcher. It is a partial reland of https://codereview.chromium.org/1725533004 This CL: -Always register/deregister for notifications. -Centralizes the logic to use a LRU cache. -Centralizes the logic to use an in-memory cache. -Replaces msarda with jif in OWNERS. -Triggers memory warning instead of calling |handleLowMemory| from tests. BUG=None ==========
lgtm
The CQ bit was checked by jif@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jif@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from sdefresne@chromium.org Link to the patchset: https://codereview.chromium.org/2394253002/#ps80001 (title: "Rebased.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by jif@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from sdefresne@chromium.org Link to the patchset: https://codereview.chromium.org/2394253002/#ps100001 (title: "Fixed test.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...)
The CQ bit was checked by jif@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Fix the snapshot_cache unittests. This fix is necessary to enable by default the iPad tab switcher. It is a partial reland of https://codereview.chromium.org/1725533004 This CL: -Always register/deregister for notifications. -Centralizes the logic to use a LRU cache. -Centralizes the logic to use an in-memory cache. -Replaces msarda with jif in OWNERS. -Triggers memory warning instead of calling |handleLowMemory| from tests. BUG=None ========== to ========== Fix the snapshot_cache unittests. This fix is necessary to enable by default the iPad tab switcher. It is a partial reland of https://codereview.chromium.org/1725533004 This CL: -Always register/deregister for notifications. -Centralizes the logic to use a LRU cache. -Centralizes the logic to use an in-memory cache. -Replaces msarda with jif in OWNERS. -Triggers memory warning instead of calling |handleLowMemory| from tests. BUG=None ==========
Message was sent while issue was closed.
Committed patchset #5 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== Fix the snapshot_cache unittests. This fix is necessary to enable by default the iPad tab switcher. It is a partial reland of https://codereview.chromium.org/1725533004 This CL: -Always register/deregister for notifications. -Centralizes the logic to use a LRU cache. -Centralizes the logic to use an in-memory cache. -Replaces msarda with jif in OWNERS. -Triggers memory warning instead of calling |handleLowMemory| from tests. BUG=None ========== to ========== Fix the snapshot_cache unittests. This fix is necessary to enable by default the iPad tab switcher. It is a partial reland of https://codereview.chromium.org/1725533004 This CL: -Always register/deregister for notifications. -Centralizes the logic to use a LRU cache. -Centralizes the logic to use an in-memory cache. -Replaces msarda with jif in OWNERS. -Triggers memory warning instead of calling |handleLowMemory| from tests. BUG=None Committed: https://crrev.com/8eb38982d179e056b228269832582c1f2c998a3a Cr-Commit-Position: refs/heads/master@{#427302} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/8eb38982d179e056b228269832582c1f2c998a3a Cr-Commit-Position: refs/heads/master@{#427302} |