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

Issue 2792443002: Adding logic to prevent offline previews fallback to LoFi/Weblite (Closed)

Created:
3 years, 8 months ago by RyanSturm
Modified:
3 years, 8 months ago
Reviewers:
bengr
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding logic to prevent offline previews fallback to LoFi/Weblite This adds ReloadType::DISABLE_LOFI_MODE to opt outs from offline previews to prevent reloads from offline previews causing a server preview from being shown. BUG=707060 Review-Url: https://codereview.chromium.org/2792443002 Cr-Commit-Position: refs/heads/master@{#461818} Committed: https://chromium.googlesource.com/chromium/src/+/0340eb999c53a854636325ece62d211b661f67d1

Patch Set 1 #

Total comments: 2

Patch Set 2 : added test and comment #

Patch Set 3 : fixed test #

Patch Set 4 : plznavigate tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -8 lines) Patch
M chrome/browser/previews/previews_infobar_delegate.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/previews/previews_infobar_delegate_unittest.cc View 1 2 3 8 chunks +81 lines, -7 lines 0 comments Download

Messages

Total messages: 32 (24 generated)
RyanSturm
bengr: PTAL
3 years, 8 months ago (2017-03-30 23:01:56 UTC) #3
bengr
https://codereview.chromium.org/2792443002/diff/1/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2792443002/diff/1/chrome/browser/previews/previews_infobar_delegate.cc#newcode158 chrome/browser/previews/previews_infobar_delegate.cc:158: web_contents->GetController().Reload(content::ReloadType::DISABLE_LOFI_MODE, Does this flag also disable lite pages? If ...
3 years, 8 months ago (2017-03-31 16:59:57 UTC) #7
RyanSturm
bengr: PTAL https://codereview.chromium.org/2792443002/diff/1/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2792443002/diff/1/chrome/browser/previews/previews_infobar_delegate.cc#newcode158 chrome/browser/previews/previews_infobar_delegate.cc:158: web_contents->GetController().Reload(content::ReloadType::DISABLE_LOFI_MODE, On 2017/03/31 16:59:56, bengr wrote: > ...
3 years, 8 months ago (2017-03-31 18:53:42 UTC) #10
bengr
lgtm
3 years, 8 months ago (2017-04-03 21:29:01 UTC) #13
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/2792443002/60001
3 years, 8 months ago (2017-04-04 18:21:48 UTC) #24
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 8 months ago (2017-04-04 19:17:06 UTC) #27
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/2792443002/60001
3 years, 8 months ago (2017-04-04 20:17:36 UTC) #29
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 20:33:54 UTC) #32
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0340eb999c53a854636325ece62d...

Powered by Google App Engine
This is Rietveld 408576698