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

Issue 1023943004: Use a separate window to notify the user that permissions are required. (Closed)

Created:
5 years, 9 months ago by Jamie
Modified:
5 years, 8 months ago
Reviewers:
garykac
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use a separate window to notify the user that permissions are required. This also moves the in-DOM equivalent under crd/ since it's no longer cross-application. BUG=b/19484255 Committed: https://crrev.com/d0bb0dff1e0ac4c71dcd76caeadcbc32a23162ff Cr-Commit-Position: refs/heads/master@{#321912}

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -125 lines) Patch
M remoting/app_remoting_webapp_files.gypi View 2 chunks +1 line, -2 lines 0 comments Download
M remoting/remoting_webapp_files.gypi View 3 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/app_remoting/html/template_lg.html View 1 chunk +0 lines, -2 lines 0 comments Download
M remoting/webapp/app_remoting/js/app_remoting.js View 2 chunks +2 lines, -2 lines 2 comments Download
A remoting/webapp/app_remoting/js/ar_auth_dialog.js View 1 chunk +56 lines, -0 lines 3 comments Download
D remoting/webapp/base/html/dialog_auth.html View 1 chunk +0 lines, -26 lines 0 comments Download
D remoting/webapp/base/js/auth_dialog.js View 1 chunk +0 lines, -92 lines 0 comments Download
A + remoting/webapp/crd/html/dialog_auth.html View 0 chunks +-1 lines, --1 lines 2 comments Download
M remoting/webapp/crd/html/template_main.html View 1 chunk +1 line, -1 line 0 comments Download
A + remoting/webapp/crd/js/crd_auth_dialog.js View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Jamie
PTAL https://codereview.chromium.org/1023943004/diff/1/remoting/webapp/app_remoting/js/app_remoting.js File remoting/webapp/app_remoting/js/app_remoting.js (left): https://codereview.chromium.org/1023943004/diff/1/remoting/webapp/app_remoting/js/app_remoting.js#oldcode95 remoting/webapp/app_remoting/js/app_remoting.js:95: remoting.LoadingWindow.show(); Showing this dialog in init() is not ...
5 years, 9 months ago (2015-03-21 01:18:23 UTC) #2
garykac
lgtm https://codereview.chromium.org/1023943004/diff/1/remoting/webapp/app_remoting/js/app_remoting.js File remoting/webapp/app_remoting/js/app_remoting.js (left): https://codereview.chromium.org/1023943004/diff/1/remoting/webapp/app_remoting/js/app_remoting.js#oldcode95 remoting/webapp/app_remoting/js/app_remoting.js:95: remoting.LoadingWindow.show(); On 2015/03/21 01:18:23, Jamie wrote: > Showing ...
5 years, 9 months ago (2015-03-23 23:25:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1023943004/1
5 years, 9 months ago (2015-03-23 23:45:20 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 9 months ago (2015-03-24 00:37:39 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/d0bb0dff1e0ac4c71dcd76caeadcbc32a23162ff Cr-Commit-Position: refs/heads/master@{#321912}
5 years, 9 months ago (2015-03-24 00:38:14 UTC) #7
Jamie
5 years, 8 months ago (2015-04-15 00:02:57 UTC) #8
Message was sent while issue was closed.
Looks like I forgot to send these comment replies; sorry.

https://codereview.chromium.org/1023943004/diff/1/remoting/webapp/app_remotin...
File remoting/webapp/app_remoting/js/ar_auth_dialog.js (right):

https://codereview.chromium.org/1023943004/diff/1/remoting/webapp/app_remotin...
remoting/webapp/app_remoting/js/ar_auth_dialog.js:43:
remoting.AuthDialog.getInstance = function() {
On 2015/03/23 23:25:33, garykac wrote:
> On 2015/03/21 01:18:23, Jamie wrote:
> > I would prefer that this getInstance() singleton is removed in favour of a
> > getAuthDialog() method on the delegate, but since I'm not sure what the
future
> > of the delegate is, I've left it for now.
> 
> Add a TODO?

There's one in auth_init.js which I think applies.

https://codereview.chromium.org/1023943004/diff/1/remoting/webapp/crd/html/di...
File remoting/webapp/crd/html/dialog_auth.html (right):

https://codereview.chromium.org/1023943004/diff/1/remoting/webapp/crd/html/di...
remoting/webapp/crd/html/dialog_auth.html:2: Copyright (c) 2014 The Chromium
Authors. All rights reserved.
On 2015/03/23 23:25:33, garykac wrote:
> For consistency, it seems like this should have a 'crd_' prefix since it's
> DesktopRemoting specific.

My understanding is that we use a crd_ prefix for cases where equivalent
functionality is implemented in both apps, to disambiguate. Since there is no
explicit auth dialog for LG (it's just a message window), it's not necessary
here. If it were, then every file under crd/ would need the prefix, which seems
like overkill.

Powered by Google App Engine
This is Rietveld 408576698