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

Issue 2930323003: Show client placeholders for Server LoFi images. (Closed)

Created:
3 years, 6 months ago by sclittle
Modified:
3 years, 5 months ago
CC:
chromium-reviews, blink-reviews, buettner
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Show client placeholders for Server LoFi images. This CL causes Chrome to show the same client-generated placeholders for both Server LoFi and Client LoFi, so that all LoFi images have a consistent appearance. BUG=680645 Review-Url: https://codereview.chromium.org/2930323003 Cr-Commit-Position: refs/heads/master@{#485131} Committed: https://chromium.googlesource.com/chromium/src/+/50e4bb95fb504cde3b317a3d16f601456acc5198

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed megjablon comments. #

Patch Set 3 : Added more comments #

Patch Set 4 : Added field trial and command line switch controls #

Total comments: 5

Patch Set 5 : Addressed comments #

Total comments: 6

Patch Set 6 : Addressed megjablon's comments #

Total comments: 8

Patch Set 7 : Addressed kouhei comments #

Patch Set 8 : Rebased on master #

Patch Set 9 : rebase flag_descriptions.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -42 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -5 lines 0 comments Download
M content/child/runtime_features.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResource.cpp View 1 2 3 4 5 6 5 chunks +65 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp View 1 2 3 4 5 6 15 chunks +83 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebRuntimeFeatures.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebRuntimeFeatures.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (16 generated)
sclittle
3 years, 6 months ago (2017-06-12 23:18:08 UTC) #2
megjablon
https://codereview.chromium.org/2930323003/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp File third_party/WebKit/Source/core/loader/resource/ImageResource.cpp (right): https://codereview.chromium.org/2930323003/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp#newcode61 third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:61: response.HttpHeaderField("chrome-proxy").Contains("q=low"); Can you add a comment that we still ...
3 years, 6 months ago (2017-06-13 19:26:15 UTC) #4
sclittle
https://codereview.chromium.org/2930323003/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp File third_party/WebKit/Source/core/loader/resource/ImageResource.cpp (right): https://codereview.chromium.org/2930323003/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp#newcode61 third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:61: response.HttpHeaderField("chrome-proxy").Contains("q=low"); On 2017/06/13 19:26:14, megjablon wrote: > Can you ...
3 years, 6 months ago (2017-06-13 20:53:23 UTC) #5
megjablon
https://codereview.chromium.org/2930323003/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp File third_party/WebKit/Source/core/loader/resource/ImageResource.cpp (right): https://codereview.chromium.org/2930323003/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp#newcode464 third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:464: if (HasServerLoFiResponseHeaders(this->GetResponse())) { On 2017/06/13 20:53:23, sclittle wrote: > ...
3 years, 6 months ago (2017-06-13 21:27:05 UTC) #6
sclittle
https://codereview.chromium.org/2930323003/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp File third_party/WebKit/Source/core/loader/resource/ImageResource.cpp (right): https://codereview.chromium.org/2930323003/diff/1/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp#newcode464 third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:464: if (HasServerLoFiResponseHeaders(this->GetResponse())) { On 2017/06/13 21:27:05, megjablon wrote: > ...
3 years, 6 months ago (2017-06-13 21:42:31 UTC) #7
sclittle
I've added field trial and command line switch controls. PTAL, thanks in advance!
3 years, 5 months ago (2017-06-29 01:22:40 UTC) #8
megjablon
https://codereview.chromium.org/2930323003/diff/60001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2930323003/diff/60001/chrome/browser/about_flags.cc#newcode1902 chrome/browser/about_flags.cc:1902: {"enable-show-client-placeholders-for-server-lo-fi", You could probably shorten this everywhere by removing ...
3 years, 5 months ago (2017-06-29 17:35:48 UTC) #9
sclittle
dglazkov: content/child/runtime_features.cc japhet: third_party/WebKit/* Thanks in advance! https://codereview.chromium.org/2930323003/diff/60001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2930323003/diff/60001/chrome/browser/about_flags.cc#newcode1902 chrome/browser/about_flags.cc:1902: {"enable-show-client-placeholders-for-server-lo-fi", On ...
3 years, 5 months ago (2017-06-29 21:27:58 UTC) #10
sclittle
yhirano: content/child/runtime_features.cc Adding yhirano@ instead of dglazkov@ who is OOO.
3 years, 5 months ago (2017-06-29 21:30:53 UTC) #12
sclittle
kinuko: third_party/WebKit/Source/platform/*
3 years, 5 months ago (2017-06-29 21:34:48 UTC) #14
yhirano
3 years, 5 months ago (2017-06-30 07:33:30 UTC) #16
megjablon
https://codereview.chromium.org/2930323003/diff/60001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2930323003/diff/60001/chrome/browser/about_flags.cc#newcode1908 chrome/browser/about_flags.cc:1908: switches::kDisableShowClientPlaceholdersForServerLoFi)}, On 2017/06/29 21:27:58, sclittle wrote: > On 2017/06/29 ...
3 years, 5 months ago (2017-06-30 18:19:21 UTC) #17
sclittle
https://codereview.chromium.org/2930323003/diff/80001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2930323003/diff/80001/chrome/browser/about_flags.cc#newcode1086 chrome/browser/about_flags.cc:1086: {"(replace Server LoFi placeholders)", On 2017/06/30 18:19:21, megjablon wrote: ...
3 years, 5 months ago (2017-06-30 21:21:06 UTC) #18
yhirano
Sorry for the late response. I'm not familiar with LoFi images, so I would like ...
3 years, 5 months ago (2017-07-06 13:12:53 UTC) #19
sclittle
OK, thanks for the heads up. @dglazkov: PTAL at content/child/runtime_features.cc
3 years, 5 months ago (2017-07-06 18:57:19 UTC) #21
kouhei (in TOK)
https://codereview.chromium.org/2930323003/diff/100001/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp File third_party/WebKit/Source/core/loader/resource/ImageResource.cpp (right): https://codereview.chromium.org/2930323003/diff/100001/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp#newcode457 third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:457: IsEntireResource(this->GetResponse())) { Sorry I forgot why we are using ...
3 years, 5 months ago (2017-07-07 01:38:03 UTC) #22
sclittle
https://codereview.chromium.org/2930323003/diff/100001/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp File third_party/WebKit/Source/core/loader/resource/ImageResource.cpp (right): https://codereview.chromium.org/2930323003/diff/100001/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp#newcode457 third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:457: IsEntireResource(this->GetResponse())) { On 2017/07/07 01:38:03, kouhei (in TOK) wrote: ...
3 years, 5 months ago (2017-07-07 02:46:41 UTC) #24
hiroshige
Blink-side looks good. I'm a bit worried about PreviewState bitwise operations scattered in the code, ...
3 years, 5 months ago (2017-07-07 02:52:50 UTC) #25
kouhei (in TOK)
lgtm
3 years, 5 months ago (2017-07-07 03:25:42 UTC) #26
hiroshige
core/loader non-owner LGTM
3 years, 5 months ago (2017-07-07 04:40:24 UTC) #27
kinuko
lgtm (Interested in if hiroshige's makes sense, and also interested in if we could factor ...
3 years, 5 months ago (2017-07-07 07:41:15 UTC) #28
kouhei (in TOK)
On 2017/07/07 07:41:15, kinuko wrote: > lgtm > > (Interested in if hiroshige's makes sense, ...
3 years, 5 months ago (2017-07-07 07:46:12 UTC) #29
sclittle
https://codereview.chromium.org/2930323003/diff/100001/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp File third_party/WebKit/Source/core/loader/resource/ImageResource.cpp (right): https://codereview.chromium.org/2930323003/diff/100001/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp#newcode481 third_party/WebKit/Source/core/loader/resource/ImageResource.cpp:481: SetPreviewsState(GetResourceRequest().GetPreviewsState() | On 2017/07/07 02:52:49, hiroshige wrote: > Just ...
3 years, 5 months ago (2017-07-07 21:25:28 UTC) #30
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/2930323003/140001
3 years, 5 months ago (2017-07-07 21:26:00 UTC) #32
commit-bot: I haz the power
Failed to apply patch for chrome/browser/flag_descriptions.cc: While running git apply --index -3 -p1; error: patch ...
3 years, 5 months ago (2017-07-07 23:30:56 UTC) #34
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/2930323003/160001
3 years, 5 months ago (2017-07-08 00:18:21 UTC) #37
commit-bot: I haz the power
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/builds/253913)
3 years, 5 months ago (2017-07-08 00:21:32 UTC) #39
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/2930323003/180001
3 years, 5 months ago (2017-07-08 00:34:19 UTC) #42
commit-bot: I haz the power
3 years, 5 months ago (2017-07-08 02:23:31 UTC) #45
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/50e4bb95fb504cde3b317a3d16f6...

Powered by Google App Engine
This is Rietveld 408576698