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

Issue 10832112: Simplify devtools code on android and enable devtools for android content_shell. (Closed)

Created:
8 years, 4 months ago by Satish
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Simplify devtools code on android and enable devtools for android content_shell. This CL removes the unnecessary RemoteDebuggingcontroller java class and associated c++ code. Also devtools_server.* is moved from content/ to chrome/ so that the code to access profiles, version etc. can be handled here to make DevToolsServer a self contained class in chrome/ layer handling devtools for android. The code making use of this class is not yet ready to be upstreamed due to dependencies and will land in future. Also added shell_devtools_delegate_android.cc to enable devtools for content_shell on android. This class and chrome/browser/android/devtools_server.cc need a common place to put the IsUserAllowedToConnect method that ensures only adb is allowed to access devtools on android (via the abstract unix socket, for security purposes) hence that method is placed in DevToolsHttpHandler in content/ BUG=136682, 136318 TEST=manual. Run android content shell, execute "adb forward tcp:9222 localabstract:content_shell_devtools_remote" and open "localhost:9222" on the host machine to use devtools. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150336

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address Pavel's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -273 lines) Patch
A chrome/browser/android/devtools_server.h View 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/android/devtools_server.cc View 1 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/app/android/app_jni_registrar.cc View 1 chunk +0 lines, -2 lines 0 comments Download
A content/browser/android/devtools_auth.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
D content/browser/android/devtools_server.cc View 1 chunk +0 lines, -112 lines 0 comments Download
D content/browser/android/remote_debugging_controller.h View 1 chunk +0 lines, -16 lines 0 comments Download
D content/browser/android/remote_debugging_controller.cc View 1 chunk +0 lines, -30 lines 0 comments Download
M content/content_browser.gypi View 1 2 chunks +2 lines, -4 lines 0 comments Download
M content/content_jni.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M content/content_shell.gypi View 2 chunks +11 lines, -7 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/RemoteDebuggingController.java View 1 chunk +0 lines, -48 lines 0 comments Download
A content/public/browser/android/devtools_auth.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
D content/public/browser/android/devtools_server.h View 1 chunk +0 lines, -53 lines 0 comments Download
M content/shell/shell_browser_main_parts.cc View 2 chunks +6 lines, -0 lines 0 comments Download
A content/shell/shell_devtools_delegate_android.cc View 1 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Satish
jam@ for the content api changes pfeldman@ for the overall devtools flow
8 years, 4 months ago (2012-08-02 13:46:17 UTC) #1
mnaganov (inactive)
Looks good https://chromiumcodereview.appspot.com/10832112/diff/1/content/public/browser/devtools_http_handler.h File content/public/browser/devtools_http_handler.h (right): https://chromiumcodereview.appspot.com/10832112/diff/1/content/public/browser/devtools_http_handler.h#newcode13 content/public/browser/devtools_http_handler.h:13: #include <pwd.h> <pwd.h> should go before <string>: ...
8 years, 4 months ago (2012-08-02 16:16:45 UTC) #2
pfeldman
DevTools part looks mostly Ok. https://chromiumcodereview.appspot.com/10832112/diff/1/chrome/browser/android/devtools_server.cc File chrome/browser/android/devtools_server.cc (right): https://chromiumcodereview.appspot.com/10832112/diff/1/chrome/browser/android/devtools_server.cc#newcode29 chrome/browser/android/devtools_server.cc:29: "http://chrome-devtools-frontend.appspot.com/static/%s/devtools.html"; I think entire ...
8 years, 4 months ago (2012-08-02 17:05:50 UTC) #3
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10832112/diff/1/content/shell/shell_devtools_delegate_android.cc File content/shell/shell_devtools_delegate_android.cc (right): https://chromiumcodereview.appspot.com/10832112/diff/1/content/shell/shell_devtools_delegate_android.cc#newcode20 content/shell/shell_devtools_delegate_android.cc:20: const char* kFrontendVersion = "21.0.1175.0"; On 2012/08/02 17:05:50, pfeldman ...
8 years, 4 months ago (2012-08-02 17:09:57 UTC) #4
pfeldman
> I remember we have discussed this and have agreed that WebKit revision can be ...
8 years, 4 months ago (2012-08-02 17:15:16 UTC) #5
Satish
Thanks for the quick review. A few responses below. https://chromiumcodereview.appspot.com/10832112/diff/1/chrome/browser/android/devtools_server.cc File chrome/browser/android/devtools_server.cc (right): https://chromiumcodereview.appspot.com/10832112/diff/1/chrome/browser/android/devtools_server.cc#newcode29 chrome/browser/android/devtools_server.cc:29: ...
8 years, 4 months ago (2012-08-02 17:17:53 UTC) #6
pfeldman
https://chromiumcodereview.appspot.com/10832112/diff/1/chrome/browser/android/devtools_server.cc File chrome/browser/android/devtools_server.cc (right): https://chromiumcodereview.appspot.com/10832112/diff/1/chrome/browser/android/devtools_server.cc#newcode29 chrome/browser/android/devtools_server.cc:29: "http://chrome-devtools-frontend.appspot.com/static/%s/devtools.html"; I just think that hard-coding particular hosting location ...
8 years, 4 months ago (2012-08-02 17:37:53 UTC) #7
Satish
New patch uploaded, PTAL https://chromiumcodereview.appspot.com/10832112/diff/1/chrome/browser/android/devtools_server.cc File chrome/browser/android/devtools_server.cc (right): https://chromiumcodereview.appspot.com/10832112/diff/1/chrome/browser/android/devtools_server.cc#newcode29 chrome/browser/android/devtools_server.cc:29: "http://chrome-devtools-frontend.appspot.com/static/%s/devtools.html"; This URL will be ...
8 years, 4 months ago (2012-08-06 10:21:40 UTC) #8
pfeldman
devtools lgtm.
8 years, 4 months ago (2012-08-06 12:12:38 UTC) #9
Satish
jam@, could you please look at the content api changes? Other changes have been reviewed ...
8 years, 4 months ago (2012-08-06 12:14:41 UTC) #10
jam
lgtm
8 years, 4 months ago (2012-08-06 18:30:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satish@chromium.org/10832112/11001
8 years, 4 months ago (2012-08-07 11:08:57 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 12:52:21 UTC) #13
Change committed as 150336

Powered by Google App Engine
This is Rietveld 408576698