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

Issue 2293373002: Remove unused prefs/api/resource for setPageEncoding (Closed)

Created:
4 years, 3 months ago by Jinsuk Kim
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unused prefs/api/resource for setPageEncoding Interface WebView::setPageEncoding was mainly used to override text encoding manually via UI. Now that UI is gone (see https://crrev.com/2254273003), the interface is not used any more by chrome. Also removed other preferences/resources that became unnecessary. BUG=597488 Committed: https://crrev.com/c07e0137ca0c4ccd4d1d2205b09c28b3f35fa6dc Cr-Commit-Position: refs/heads/master@{#416827}

Patch Set 1 #

Patch Set 2 : removed unused flag/prefs #

Total comments: 2

Patch Set 3 : reverted TextResourceDecoder #

Total comments: 4

Patch Set 4 : comments #

Total comments: 4

Patch Set 5 : It's September! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -120 lines) Patch
M chrome/app/resources/locale_settings.grd View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/app/resources/locale_settings_am.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_ar.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_bg.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_bn.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_ca.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_cs.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_da.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_de.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_el.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_en-GB.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_es.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_es-419.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_et.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_fa.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_fake-bidi.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_fi.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_fil.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_fr.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_gu.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_he.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_hi.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_hr.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_hu.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_id.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_it.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_ja.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_kn.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_ko.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_lt.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_lv.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_ml.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_mr.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_nb.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_nl.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_pl.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_pt-BR.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_pt-PT.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_ro.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_ru.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_sk.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_sl.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_sr.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_sv.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_sw.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_ta.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_te.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_th.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_tr.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_uk.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_vi.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_zh-CN.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/resources/locale_settings_zh-TW.xtb View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/browser_encoding_browsertest.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_unittest.cc View 1 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/web_preferences.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/web_preferences.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/encoding/meta-overrules-auto.html View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameHost.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 1 chunk +0 lines, -24 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 72 (51 generated)
Jinsuk Kim
I'm not sure whether it is a common practice to remove Blink interface once it ...
4 years, 3 months ago (2016-08-31 07:07:07 UTC) #6
tkent
On 2016/08/31 at 07:07:07, jinsukkim wrote: > I'm not sure whether it is a common ...
4 years, 3 months ago (2016-08-31 15:26:10 UTC) #7
tkent
We should remove more. - FrameHost::setOverrideEncoding() - FrameHost::overrideEncoding() It's always a null string. - useEncodingDetector ...
4 years, 3 months ago (2016-08-31 15:30:58 UTC) #8
Jinsuk Kim
PTAL https://codereview.chromium.org/2293373002/diff/120001/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp File third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp (right): https://codereview.chromium.org/2293373002/diff/120001/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp#newcode140 third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp:140: // Default encoding for XML content should remain ...
4 years, 3 months ago (2016-09-05 10:08:50 UTC) #39
tkent
https://codereview.chromium.org/2293373002/diff/120001/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp File third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp (right): https://codereview.chromium.org/2293373002/diff/120001/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp#newcode140 third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp:140: // Default encoding for XML content should remain as ...
4 years, 3 months ago (2016-09-05 23:53:45 UTC) #40
Jinsuk Kim
On 2016/09/05 23:53:45, tkent wrote: > https://codereview.chromium.org/2293373002/diff/120001/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp > File third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp (right): > > https://codereview.chromium.org/2293373002/diff/120001/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp#newcode140 > ...
4 years, 3 months ago (2016-09-06 00:32:23 UTC) #41
tkent
On 2016/09/06 at 00:32:23, jinsukkim wrote: > On 2016/09/05 23:53:45, tkent wrote: > > https://codereview.chromium.org/2293373002/diff/120001/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.cpp ...
4 years, 3 months ago (2016-09-06 01:09:05 UTC) #42
Jinsuk Kim
PTAL. Will have a follow-up CL ready that puts the suppressed layout tests back on.
4 years, 3 months ago (2016-09-06 02:01:04 UTC) #46
tkent
third_party/WebKit lgtm
4 years, 3 months ago (2016-09-06 02:07:47 UTC) #47
Jinsuk Kim
Could I have your owner's lgtm: kinuko@chromium.org: Please review changes in content/ thestig@chromium.org: Please review ...
4 years, 3 months ago (2016-09-06 02:19:00 UTC) #49
Jinsuk Kim
rickyz@ Please review changes in content/public/common/common_param_traits_macros.h
4 years, 3 months ago (2016-09-06 02:21:13 UTC) #51
Lei Zhang
https://codereview.chromium.org/2293373002/diff/140001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/2293373002/diff/140001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode68 chrome/browser/ui/prefs/prefs_tab_helper.cc:68: const char* kPrefsToObserve[] = { Can you make this ...
4 years, 3 months ago (2016-09-06 19:03:40 UTC) #54
rickyz (no longer on Chrome)
content/public/common/common_param_traits_macros.h lgtm
4 years, 3 months ago (2016-09-06 19:39:57 UTC) #55
Jinsuk Kim
https://codereview.chromium.org/2293373002/diff/140001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/2293373002/diff/140001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode68 chrome/browser/ui/prefs/prefs_tab_helper.cc:68: const char* kPrefsToObserve[] = { On 2016/09/06 19:03:40, Lei ...
4 years, 3 months ago (2016-09-06 20:42:13 UTC) #56
Lei Zhang
lgtm with nits. https://codereview.chromium.org/2293373002/diff/160001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2293373002/diff/160001/chrome/browser/prefs/browser_prefs.cc#newcode751 chrome/browser/prefs/browser_prefs.cc:751: profile_prefs->ClearPref(prefs::kWebKitUsesUniversalDetector); It's September. :) https://codereview.chromium.org/2293373002/diff/160001/chrome/common/pref_names.cc File ...
4 years, 3 months ago (2016-09-06 20:44:53 UTC) #57
Jinsuk Kim
creis@ could I have owner's seal for content/?
4 years, 3 months ago (2016-09-06 20:46:26 UTC) #59
Jinsuk Kim
Thanks for dragging me out of the August https://codereview.chromium.org/2293373002/diff/160001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2293373002/diff/160001/chrome/browser/prefs/browser_prefs.cc#newcode751 chrome/browser/prefs/browser_prefs.cc:751: profile_prefs->ClearPref(prefs::kWebKitUsesUniversalDetector); ...
4 years, 3 months ago (2016-09-06 21:19:40 UTC) #60
Charlie Reis
content/ LGTM
4 years, 3 months ago (2016-09-06 22:03:59 UTC) #61
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/2293373002/180001
4 years, 3 months ago (2016-09-07 02:26:50 UTC) #68
commit-bot: I haz the power
Committed patchset #5 (id:180001)
4 years, 3 months ago (2016-09-07 02:34:03 UTC) #70
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 02:37:26 UTC) #72
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c07e0137ca0c4ccd4d1d2205b09c28b3f35fa6dc
Cr-Commit-Position: refs/heads/master@{#416827}

Powered by Google App Engine
This is Rietveld 408576698