Description was changed from ========== [Offline Pages] Connect the offline page logs to the internals ...
4 years, 6 months ago
(2016-06-23 05:53:56 UTC)
#1
Description was changed from
==========
[Offline Pages] Connect the offline page logs to the internals page.
BUG=609570
==========
to
==========
[Offline Pages] Connect the offline page logs to the internals page.
BUG=609570
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
Re Justin's comment: I patched the current status in. However, I don't have time for ...
4 years, 6 months ago
(2016-06-24 21:43:17 UTC)
#6
Re Justin's comment:
I patched the current status in. However, I don't have time for polish. For
now, it will load/update the isLogging status only when you press 'Refresh Logs'
or 'Refresh Page'. Clicking on any of the enable/disable log buttons will cause
the status to be out of date.
I'll polish in a separate CL (after vacation)
https://codereview.chromium.org/2089423002/diff/40001/chrome/browser/resource...
File chrome/browser/resources/offline_pages/offline_internals.js (right):
https://codereview.chromium.org/2089423002/diff/40001/chrome/browser/resource...
chrome/browser/resources/offline_pages/offline_internals.js:193:
$('log-model-on').onclick = toggleModelOn;
On 2016/06/24 20:33:39, dpapad wrote:
> Nit: The four different callback methods can be removed and inlined as
follows,
>
> $('log-model-on').onclick =
> browserProxy_.setRecordPageModel.bind(browserProxy_, true);
> $('log-model-off').onclick =
> browserProxy_.setRecordPageModel.bind(browserProxy_, false);
> $('log-request-on).onclick =
> browserProxy_.setRecordRequestQueue.bind(browserProxy_, true);
> $('log-request-off).onclick =
> browserProxy_.setRecordRequestQueue.bind(browserProxy_, false);
Done.
https://codereview.chromium.org/2089423002/diff/40001/chrome/browser/resource...
File chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js
(right):
https://codereview.chromium.org/2089423002/diff/40001/chrome/browser/resource...
chrome/browser/resources/offline_pages/offline_internals_browser_proxy.js:66: *
@param {boolean} shouldLog True if we should enable logging.
On 2016/06/24 20:33:39, dpapad wrote:
> Nit (optional): Avoid using 'we' in comments. "Whether logging should be
> enabled."
Done.
https://codereview.chromium.org/2089423002/diff/40001/chrome/browser/ui/webui...
File chrome/browser/ui/webui/offline_internals_ui.cc (right):
https://codereview.chromium.org/2089423002/diff/40001/chrome/browser/ui/webui...
chrome/browser/ui/webui/offline_internals_ui.cc:265: args->GetBoolean(0,
&should_record);
On 2016/06/24 20:33:39, dpapad wrote:
> CHECK(args->GetBoolean(0, &should_record));
Done.
dpapad
https://codereview.chromium.org/2089423002/diff/60001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2089423002/diff/60001/chrome/browser/resources/offline_pages/offline_internals.js#newcode167 chrome/browser/resources/offline_pages/offline_internals.js:167: browserProxy_.getLoggingState().then(logStatus); logStatus is not a function. Did you mean ...
4 years, 6 months ago
(2016-06-24 22:14:54 UTC)
#7
https://codereview.chromium.org/2089423002/diff/60001/chrome/browser/resources/offline_pages/offline_internals.js File chrome/browser/resources/offline_pages/offline_internals.js (right): https://codereview.chromium.org/2089423002/diff/60001/chrome/browser/resources/offline_pages/offline_internals.js#newcode167 chrome/browser/resources/offline_pages/offline_internals.js:167: browserProxy_.getLoggingState().then(logStatus); On 2016/06/24 22:14:53, dpapad wrote: > logStatus is ...
4 years, 6 months ago
(2016-06-24 22:35:23 UTC)
#8
https://codereview.chromium.org/2089423002/diff/60001/chrome/browser/resource...
File chrome/browser/resources/offline_pages/offline_internals.js (right):
https://codereview.chromium.org/2089423002/diff/60001/chrome/browser/resource...
chrome/browser/resources/offline_pages/offline_internals.js:167:
browserProxy_.getLoggingState().then(logStatus);
On 2016/06/24 22:14:53, dpapad wrote:
> logStatus is not a function. Did you mean the following?
> browserProxy_.getLoggingState().then(updateLogStatus);
>
>
> I suggest packaging those request/response functions in a different way, when
> there is no good reason to have the response function as a separate top level
> function. For example
>
> function updateLogStatus() {
> browserProxy_.getLoggingState().then(function(logStatus) {
> $('model-status').textContent =
> logStatus.modelIsLogging ? 'On' : 'Off';
> $('request-status').textContent =
> logStatus.queueIsLogging ? 'On' : 'Off';
> });
> }
Done.
https://codereview.chromium.org/2089423002/diff/60001/components/offline_page...
File components/offline_pages/offline_page_model_impl.cc (left):
https://codereview.chromium.org/2089423002/diff/60001/components/offline_page...
components/offline_pages/offline_page_model_impl.cc:1050: }
On 2016/06/24 22:14:53, dpapad wrote:
> Accidental? I think this is causing the tryjobs to fail.
Bad merge :(
dewittj
lgtm
4 years, 6 months ago
(2016-06-24 22:38:27 UTC)
#9
lgtm
dpapad
lgtm
4 years, 6 months ago
(2016-06-24 22:52:55 UTC)
#10
lgtm
chili
The CQ bit was checked by chili@chromium.org
4 years, 5 months ago
(2016-06-27 19:03:02 UTC)
#11
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/94398)
4 years, 5 months ago
(2016-06-27 19:23:10 UTC)
#18
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/87813) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 5 months ago
(2016-06-27 21:56:41 UTC)
#26
4 years, 5 months ago
(2016-06-28 01:37:53 UTC)
#30
Message was sent while issue was closed.
Committed patchset #10 (id:180001)
commit-bot: I haz the power
Description was changed from ========== [Offline Pages] Connect the offline page logs to the internals ...
4 years, 5 months ago
(2016-06-28 01:39:20 UTC)
#31
Message was sent while issue was closed.
Description was changed from
==========
[Offline Pages] Connect the offline page logs to the internals page.
BUG=609570
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
==========
to
==========
[Offline Pages] Connect the offline page logs to the internals page.
BUG=609570
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/e2bfbe7f7650702d48775d11de68e17739334ddd
Cr-Commit-Position: refs/heads/master@{#402363}
==========
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/e2bfbe7f7650702d48775d11de68e17739334ddd Cr-Commit-Position: refs/heads/master@{#402363}
4 years, 5 months ago
(2016-06-28 01:39:21 UTC)
#32
Issue 2089423002: [Offline Pages] Connect the offline page logs to the internals page.
(Closed)
Created 4 years, 6 months ago by chili
Modified 4 years, 5 months ago
Reviewers: dpapad, dewittj
Base URL: https://chromium.googlesource.com/chromium/src.git@i4
Comments: 10