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

Issue 2819793002: Translate: do not show the context menu entry when the feature is disabled (Closed)

Created:
3 years, 8 months ago by Takashi Toyoshima
Modified:
3 years, 8 months ago
Reviewers:
droger, lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, ios-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Translate: do not show the context menu entry when the feature is disabled Currently, Chrome has a context menu entry to translate the page even when the translate feature is disabled by PolicyList. But, it should be better to stop adding the entry when the feature is disabled. BUG=711217 TBR=sky@chromium.org, michaeldo@chromium.org Review-Url: https://codereview.chromium.org/2819793002 Cr-Commit-Position: refs/heads/master@{#465177} Committed: https://chromium.googlesource.com/chromium/src/+/c64ccfd0e457a5b54ac57ed095064b0f0bd59203

Patch Set 1 #

Patch Set 2 : ifdef macro name update #

Total comments: 4

Patch Set 3 : bug fix #

Patch Set 4 : ios BUILD.gn fix #

Patch Set 5 : some more include path changes for ios/android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -65 lines) Patch
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/preference/preference_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/preference/preference_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/settings_private/prefs_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 chunk +10 lines, -8 lines 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/translate/core/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_download_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/translate/core/browser/translate_manager.cc View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M components/translate/core/browser/translate_manager_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + components/translate/core/browser/translate_pref_names.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/browser/translate_pref_names.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/translate/core/browser/translate_prefs.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_prefs.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M components/translate/core/common/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D components/translate/core/common/translate_pref_names.h View 1 chunk +0 lines, -14 lines 0 comments Download
D components/translate/core/common/translate_pref_names.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M components/translate/ios/browser/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/translate/ios/browser/language_detection_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M components/translate/ios/browser/language_detection_controller_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/prefs/browser_prefs.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/translate/translate_egtest.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/settings/content_settings_collection_view_controller.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/settings/translate_collection_view_controller.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/settings/translate_collection_view_controller_unittest.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ios/web_view/internal/web_view_browser_state.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (17 generated)
Takashi Toyoshima
Can you take a look? https://codereview.chromium.org/2819793002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/2819793002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode1248 chrome/browser/renderer_context_menu/render_view_context_menu.cc:1248: if (prefs->IsEnabled()) { This ...
3 years, 8 months ago (2017-04-14 10:22:28 UTC) #6
droger
lgtm https://codereview.chromium.org/2819793002/diff/20001/components/translate/core/browser/translate_pref_names.h File components/translate/core/browser/translate_pref_names.h (left): https://codereview.chromium.org/2819793002/diff/20001/components/translate/core/browser/translate_pref_names.h#oldcode1 components/translate/core/browser/translate_pref_names.h:1: // Copyright 2014 The Chromium Authors. All rights ...
3 years, 8 months ago (2017-04-14 11:45:28 UTC) #7
Takashi Toyoshima
+lazyboy for chrome/browser/renderer_context_menu/render_view_context_menu.cc TBR=sky for other chrome files
3 years, 8 months ago (2017-04-17 05:18:56 UTC) #10
lazyboy
render_view_context_menu.cc lgtm. https://codereview.chromium.org/2819793002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/2819793002/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode1248 chrome/browser/renderer_context_menu/render_view_context_menu.cc:1248: if (prefs->IsEnabled()) { On 2017/04/14 10:22:28, Takashi ...
3 years, 8 months ago (2017-04-17 20:25:45 UTC) #11
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/2819793002/20001
3 years, 8 months ago (2017-04-18 03:31:28 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/81727)
3 years, 8 months ago (2017-04-18 03:40:13 UTC) #15
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/2819793002/60001
3 years, 8 months ago (2017-04-18 06:43:09 UTC) #18
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/196203)
3 years, 8 months ago (2017-04-18 06:52:42 UTC) #20
Takashi Toyoshima
+TBR michaeldo for ios/web_view user side mechanical changes.
3 years, 8 months ago (2017-04-18 07:18:49 UTC) #22
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/2819793002/80001
3 years, 8 months ago (2017-04-18 07:19:16 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 08:34:35 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c64ccfd0e457a5b54ac57ed09506...

Powered by Google App Engine
This is Rietveld 408576698