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

Issue 854513002: Remove the discrepencies between chrome and android_webview print (Closed)

Created:
5 years, 11 months ago by sgurun-gerrit only
Modified:
5 years, 11 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the discrepencies between chrome and android_webview print messages to enable componentizing printing. Basically, we have modified two print messages PrintHostMsg_AllocateTempFileForPrinting PrintHostMsg_TempFileForPrintingWritten to a routed message rather then a control message to simplify implementation. However, this prevents moving the code to components. BUG=446509 Committed: https://crrev.com/ee20aa9a5b382180944c5f0367fdddd5f7c22aa5 Cr-Commit-Position: refs/heads/master@{#311544}

Patch Set 1 #

Total comments: 8

Patch Set 2 : address code review #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -26 lines) Patch
M android_webview/android_webview.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A android_webview/browser/aw_printing_message_filter.h View 1 chunk +40 lines, -0 lines 0 comments Download
A android_webview/browser/aw_printing_message_filter.cc View 1 chunk +86 lines, -0 lines 4 comments Download
M android_webview/browser/renderer_host/print_manager.h View 4 chunks +21 lines, -12 lines 0 comments Download
M android_webview/browser/renderer_host/print_manager.cc View 1 2 chunks +14 lines, -4 lines 0 comments Download
M android_webview/common/print_messages.h View 1 chunk +7 lines, -5 lines 2 comments Download
M android_webview/native/aw_pdf_exporter.h View 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/native/aw_pdf_exporter.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
sgurun-gerrit only
On 2015/01/14 01:09:26, sgurun wrote: > mailto:sgurun@chromium.org changed reviewers: > + mailto:nasko@chromium.org nasko: please review ...
5 years, 11 months ago (2015-01-14 01:10:28 UTC) #3
sgurun-gerrit only
On 2015/01/14 01:10:28, sgurun wrote: > On 2015/01/14 01:09:26, sgurun wrote: > > mailto:sgurun@chromium.org changed ...
5 years, 11 months ago (2015-01-14 01:18:23 UTC) #5
boliu
drive-by: owndership of PrintManager doesn't need to change I think? AwContents has a FromID method, ...
5 years, 11 months ago (2015-01-14 01:41:02 UTC) #7
hush (inactive)
lgtm with some minor comments https://codereview.chromium.org/854513002/diff/1/android_webview/browser/renderer_host/print_manager.cc File android_webview/browser/renderer_host/print_manager.cc (right): https://codereview.chromium.org/854513002/diff/1/android_webview/browser/renderer_host/print_manager.cc#newcode36 android_webview/browser/renderer_host/print_manager.cc:36: stale line. https://codereview.chromium.org/854513002/diff/1/android_webview/native/aw_pdf_exporter.cc File ...
5 years, 11 months ago (2015-01-14 01:55:47 UTC) #8
sgurun-gerrit only
On 2015/01/14 01:41:02, boliu wrote: > drive-by: > > owndership of PrintManager doesn't need to ...
5 years, 11 months ago (2015-01-14 01:59:55 UTC) #9
sgurun-gerrit only
https://codereview.chromium.org/854513002/diff/1/android_webview/browser/renderer_host/print_manager.cc File android_webview/browser/renderer_host/print_manager.cc (right): https://codereview.chromium.org/854513002/diff/1/android_webview/browser/renderer_host/print_manager.cc#newcode36 android_webview/browser/renderer_host/print_manager.cc:36: On 2015/01/14 01:55:47, hush wrote: > stale line. Done. ...
5 years, 11 months ago (2015-01-14 02:03:18 UTC) #10
boliu
On 2015/01/14 01:59:55, sgurun wrote: > On 2015/01/14 01:41:02, boliu wrote: > > drive-by: > ...
5 years, 11 months ago (2015-01-14 02:18:52 UTC) #11
sgurun-gerrit only
On 2015/01/14 02:18:52, boliu wrote: > On 2015/01/14 01:59:55, sgurun wrote: > > On 2015/01/14 ...
5 years, 11 months ago (2015-01-14 02:31:41 UTC) #12
dgn
https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc File android_webview/browser/aw_printing_message_filter.cc (right): https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc#newcode25 android_webview/browser/aw_printing_message_filter.cc:25: if (rvh == nullptr) nit: if(!rvh) same for other ...
5 years, 11 months ago (2015-01-14 11:19:19 UTC) #13
sgurun-gerrit only
https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc File android_webview/browser/aw_printing_message_filter.cc (right): https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc#newcode25 android_webview/browser/aw_printing_message_filter.cc:25: if (rvh == nullptr) On 2015/01/14 11:19:19, dgn wrote: ...
5 years, 11 months ago (2015-01-14 18:55:58 UTC) #14
sgurun-gerrit only
On 2015/01/14 18:55:58, sgurun wrote: > https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc > File android_webview/browser/aw_printing_message_filter.cc (right): > > https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc#newcode25 > ...
5 years, 11 months ago (2015-01-14 18:56:47 UTC) #15
nasko
The main comment is to transition this CL from RenderView(Host) to RenderFrame(Host). https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc File android_webview/browser/aw_printing_message_filter.cc ...
5 years, 11 months ago (2015-01-14 19:16:33 UTC) #16
sgurun-gerrit only
On 2015/01/14 19:16:33, nasko wrote: > The main comment is to transition this CL from ...
5 years, 11 months ago (2015-01-14 19:35:04 UTC) #17
sgurun-gerrit only
https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc File android_webview/browser/aw_printing_message_filter.cc (right): https://codereview.chromium.org/854513002/diff/20001/android_webview/browser/aw_printing_message_filter.cc#newcode23 android_webview/browser/aw_printing_message_filter.cc:23: content::RenderViewHost* rvh = content::RenderViewHost::FromID( On 2015/01/14 19:16:33, nasko wrote: ...
5 years, 11 months ago (2015-01-14 19:35:20 UTC) #18
nasko
Thanks for filing the bug. Since you are replicating an existing codepath, LGTM.
5 years, 11 months ago (2015-01-14 19:40:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/854513002/20001
5 years, 11 months ago (2015-01-14 19:48:39 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-14 21:00:13 UTC) #22
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 21:00:54 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ee20aa9a5b382180944c5f0367fdddd5f7c22aa5
Cr-Commit-Position: refs/heads/master@{#311544}

Powered by Google App Engine
This is Rietveld 408576698