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

Issue 2536573003: [Offline pages] Preventing GetPagesMatchingQuery from running before model is loaded (Closed)

Created:
4 years ago by fgorski
Modified:
4 years ago
Reviewers:
vitaliii, dewittj
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Preventing GetPagesMatchingQuery from running before model is loaded * When making a function to get offline pages using query public, we missed making it run only when the model is loaded. This patch fixes that by deferring the actually execution after the model is loaded. BUG=668174 Committed: https://crrev.com/e3282abc2d498c63720bb7262bccf14013bd2484 Cr-Commit-Position: refs/heads/master@{#434726}

Patch Set 1 #

Patch Set 2 : Adding a test for public method GetPagesMatchingQuery #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -46 lines) Patch
M components/offline_pages/offline_page_model_impl.h View 1 1 chunk +3 lines, -6 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 7 chunks +50 lines, -39 lines 2 comments Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 chunks +32 lines, -1 line 0 comments Download

Messages

Total messages: 17 (10 generated)
fgorski
PTAL
4 years ago (2016-11-28 16:47:28 UTC) #5
dewittj
Thanks for fixing my bug. Mostly lg, just a preference to simplify things a little ...
4 years ago (2016-11-28 17:52:09 UTC) #8
fgorski
https://codereview.chromium.org/2536573003/diff/20001/components/offline_pages/offline_page_model_impl.cc File components/offline_pages/offline_page_model_impl.cc (right): https://codereview.chromium.org/2536573003/diff/20001/components/offline_pages/offline_page_model_impl.cc#newcode492 components/offline_pages/offline_page_model_impl.cc:492: RunWhenLoaded( On 2016/11/28 17:52:09, dewittj wrote: > This could ...
4 years ago (2016-11-28 18:30:58 UTC) #9
dewittj
I won't hold you up on this but it still feels like a bunch of ...
4 years ago (2016-11-28 18:35:54 UTC) #10
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/2536573003/20001
4 years ago (2016-11-28 20:57:31 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-28 21:50:04 UTC) #15
commit-bot: I haz the power
4 years ago (2016-11-28 21:51:58 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e3282abc2d498c63720bb7262bccf14013bd2484
Cr-Commit-Position: refs/heads/master@{#434726}

Powered by Google App Engine
This is Rietveld 408576698