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

Issue 2398743002: Disable Ctrl+Shift+P on Chrome OS (Closed)

Created:
4 years, 2 months ago by skau
Modified:
4 years, 2 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2840
Project:
chromium
Visibility:
Public.

Description

Disable Ctrl+Shift+P on Chrome OS Chrome OS uses ENABLE_BASIC_PRINTING but has no system dialog. Disable the shortcut as invoking printing in this state causes a crash. BUG=652220 TEST=Verify printing still works. Ctrl+Shift+P is a nop. NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2376193006 Cr-Commit-Position: refs/heads/master@{#423047} (cherry picked from commit 03b6108c27abe7ebecec0179c34c05938ae3e905)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -16 lines) Patch
M chrome/browser/ui/browser_commands.cc View 4 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 5 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/features.gni View 1 chunk +4 lines, -0 lines 0 comments Download
M printing/printing_context_chromeos.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
skau
Cherry-pick into M54. I'm not a committer so I need approval.
4 years, 2 months ago (2016-10-05 18:42:01 UTC) #2
Lei Zhang
lgtm
4 years, 2 months ago (2016-10-05 18:44:41 UTC) #3
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/2398743002/1
4 years, 2 months ago (2016-10-05 19:30:14 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-05 19:35:40 UTC) #6
boliu
This breaks the build on the branch: FAILED: build.ninja /android/release/src/buildtools/linux64/gn --root=/android/release/src -q gen //out/Default/ ERROR ...
4 years, 2 months ago (2016-10-05 23:45:25 UTC) #7
skau
On 2016/10/05 23:45:25, boliu wrote: > This breaks the build on the branch: > > ...
4 years, 2 months ago (2016-10-05 23:52:00 UTC) #8
boliu
4 years, 2 months ago (2016-10-05 23:57:15 UTC) #9
Message was sent while issue was closed.
On 2016/10/05 23:52:00, skau wrote:
> On 2016/10/05 23:45:25, boliu wrote:
> > This breaks the build on the branch:
> > 
> > FAILED: build.ninja 
> > /android/release/src/buildtools/linux64/gn --root=/android/release/src -q
gen
> > //out/Default/
> > ERROR at //chrome/common/features.gni:37:31: Undefined identifier
> >   enable_basic_print_dialog = enable_basic_printing && !is_chromeos
> >                               ^--------------------
> > See //chrome/android/chrome_public_apk_tmpl.gni:7:1: whence it was imported.
> > import("//chrome/common/features.gni")
> > ^------------------------------------
> > See //chrome/android/BUILD.gn:8:1: whence it was imported.
> > import("//chrome/android/chrome_public_apk_tmpl.gni")
> > ^---------------------------------------------------
> > See //BUILD.gn:413:9: which caused the file to be included.
> >         "//chrome/android:chrome_junit_tests",
> >         ^------------------------------------
> > ninja: error: rebuilding 'build.ninja': subcommand failed
> 
> Fixed with https://codereview.chromium.org/2393283002.  Small issue with the
> merge.

Ahh, my sync just missed it

Powered by Google App Engine
This is Rietveld 408576698