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

Issue 184343013: Add a method to query whether printing is active. (Closed)

Created:
6 years, 9 months ago by sgurun-gerrit only
Modified:
6 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add a method to query whether printing is active. relevant downstream link: https://chrome-internal-review.googlesource.com/#/c/156479/ BUG=344057 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255994

Patch Set 1 #

Patch Set 2 : changes busy to stay active until onFinish #

Total comments: 2

Patch Set 3 : addressed code review #

Messages

Total messages: 13 (0 generated)
cimamoglu (inactive)
lgtm Please add BUG=344057 to the commit message. One small comment, other than that LGTM. ...
6 years, 9 months ago (2014-03-07 11:52:21 UTC) #1
cimamoglu (inactive)
dtrainor@chromium.org: for OWNERS Also, please add the relevant downstream CL link to the commit message.
6 years, 9 months ago (2014-03-07 11:53:55 UTC) #2
sgurun-gerrit only
On 2014/03/07 11:53:55, cimamoglu wrote: > dtrainor@chromium.org: for OWNERS > > Also, please add the ...
6 years, 9 months ago (2014-03-07 18:38:31 UTC) #3
sgurun-gerrit only
https://codereview.chromium.org/184343013/diff/20001/printing/android/java/src/org/chromium/printing/PrintingControllerImpl.java File printing/android/java/src/org/chromium/printing/PrintingControllerImpl.java (right): https://codereview.chromium.org/184343013/diff/20001/printing/android/java/src/org/chromium/printing/PrintingControllerImpl.java#newcode177 printing/android/java/src/org/chromium/printing/PrintingControllerImpl.java:177: mPrintManager = printManager; On 2014/03/07 11:52:21, cimamoglu wrote: > ...
6 years, 9 months ago (2014-03-07 18:38:41 UTC) #4
David Trainor- moved to gerrit
lgtm thanks!
6 years, 9 months ago (2014-03-08 00:34:13 UTC) #5
sgurun-gerrit only
The CQ bit was checked by sgurun@chromium.org
6 years, 9 months ago (2014-03-10 14:38:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/184343013/40001
6 years, 9 months ago (2014-03-10 14:38:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/184343013/40001
6 years, 9 months ago (2014-03-10 17:11:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/184343013/40001
6 years, 9 months ago (2014-03-10 17:45:56 UTC) #9
commit-bot: I haz the power
Change committed as 255994
6 years, 9 months ago (2014-03-10 18:40:10 UTC) #10
newt (away)
Question about an Android lint error caused by this CL: Context.PRINT_SERVICE was added in KitKat, ...
6 years, 9 months ago (2014-03-11 22:06:56 UTC) #11
sgurun-gerrit only
On 2014/03/11 22:06:56, newt wrote: > Question about an Android lint error caused by this ...
6 years, 9 months ago (2014-03-11 22:40:19 UTC) #12
newt (away)
6 years, 9 months ago (2014-03-11 23:58:12 UTC) #13
Message was sent while issue was closed.
On 2014/03/11 22:40:19, sgurun wrote:
> On 2014/03/11 22:06:56, newt wrote:
> > Question about an Android lint error caused by this CL:
> > 
> > Context.PRINT_SERVICE was added in KitKat, so mPrintManager in
> > PrintManagerDelegateImpl.java will be null on earlier platforms. Are we
> ensuring
> > that we're on version 19 or higher before we construct the
> > PrintManagerDelegateImpl so we don't crash on earlier versions of Android?
If
> > so, we can just suppress the warning. If not, we should fix that. Thanks!
> > 
> > Android lint output:
> > 
> >
>
printing/android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java:19
> > Error: Field requires API level 19 (current min is 14):
> > android.content.Context#PRINT_SERVICE [InlinedApi]
> >         mPrintManager =  (PrintManager)
> > context.getSystemService(Context.PRINT_SERVICE);
> 
> good point. We do check for it (downstream) but it is slightly indirectly. We
> check the API level before creating printingcontroller, and then we check
> whether printing controller is created before creating the delegate
> implementation.
> 
> I can try to improve on this by adding another check to a more proper
location.

Sounds good. Thanks!

Powered by Google App Engine
This is Rietveld 408576698