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

Issue 11017024: Implement AwContentsClient and remove dependency on chrome/ (Closed)

Created:
8 years, 2 months ago by boliu
Modified:
8 years, 2 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Implement AwContentsClient and remove dependency on chrome/ We are not depending on much functionality from ContentClient yet, so most methods are either no-op, left unimplemented with a TODO, or copied straight from the ChromeContentsClient implementation. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161120

Patch Set 1 #

Total comments: 18

Patch Set 2 : Remove no-op methods. Consolidate user-agent generation. #

Patch Set 3 : Revert unrelated ua change since it depends on override logic. #

Total comments: 3

Patch Set 4 : Sort include. #

Patch Set 5 : Remove unused forward declaration. #

Patch Set 6 : Also slip in removing 'aw_' from aw_contents_client_ var name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -22 lines) Patch
M android_webview/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/android_webview.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A + android_webview/common/aw_content_client.h View 1 2 3 4 2 chunks +9 lines, -11 lines 0 comments Download
A android_webview/common/aw_content_client.cc View 1 1 chunk +39 lines, -0 lines 0 comments Download
M android_webview/lib/DEPS View 2 chunks +0 lines, -4 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/content_settings.cc View 1 2 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
boliu
This was surprisingly painless in terms of getting things working again. I ran through all ...
8 years, 2 months ago (2012-10-08 22:43:42 UTC) #1
boliu
Downstream instrumentation tests are ok. And cts tests *seem* to be ok, but I'm hitting ...
8 years, 2 months ago (2012-10-09 01:03:33 UTC) #2
joth
+mnaganov to comment on the UA changes. Thanks for getting stuck into this! In general, ...
8 years, 2 months ago (2012-10-09 02:00:47 UTC) #3
mnaganov (inactive)
http://codereview.chromium.org/11017024/diff/1/android_webview/common/aw_content_client.cc File android_webview/common/aw_content_client.cc (right): http://codereview.chromium.org/11017024/diff/1/android_webview/common/aw_content_client.cc#newcode37 android_webview/common/aw_content_client.cc:37: // asset files here? On 2012/10/09 02:00:47, joth wrote: ...
8 years, 2 months ago (2012-10-09 08:57:20 UTC) #4
Torne
Second all the others' comments, other than that it looks pretty good. Glad this one ...
8 years, 2 months ago (2012-10-09 11:07:38 UTC) #5
boliu
http://codereview.chromium.org/11017024/diff/1/android_webview/common/aw_content_client.cc File android_webview/common/aw_content_client.cc (right): http://codereview.chromium.org/11017024/diff/1/android_webview/common/aw_content_client.cc#newcode22 android_webview/common/aw_content_client.cc:22: On 2012/10/09 02:00:47, joth wrote: > on the general ...
8 years, 2 months ago (2012-10-09 18:01:47 UTC) #6
joth
lgtm https://codereview.chromium.org/11017024/diff/3003/android_webview/common/aw_content_client.cc File android_webview/common/aw_content_client.cc (right): https://codereview.chromium.org/11017024/diff/3003/android_webview/common/aw_content_client.cc#newcode20 android_webview/common/aw_content_client.cc:20: return webkit_glue::BuildUserAgentFromProduct(GetProduct()); Mikhail and I were actually agreeing ...
8 years, 2 months ago (2012-10-09 19:53:37 UTC) #7
boliu
http://codereview.chromium.org/11017024/diff/3003/android_webview/common/aw_content_client.cc File android_webview/common/aw_content_client.cc (right): http://codereview.chromium.org/11017024/diff/3003/android_webview/common/aw_content_client.cc#newcode20 android_webview/common/aw_content_client.cc:20: return webkit_glue::BuildUserAgentFromProduct(GetProduct()); On 2012/10/09 19:53:37, joth wrote: > aside ...
8 years, 2 months ago (2012-10-09 20:05:54 UTC) #8
joth
On 9 October 2012 13:05, <boliu@chromium.org> wrote: > > http://codereview.chromium.**org/11017024/diff/3003/** > android_webview/common/aw_**content_client.cc<http://codereview.chromium.org/11017024/diff/3003/android_webview/common/aw_content_client.cc> > File android_webview/common/aw_**content_client.cc ...
8 years, 2 months ago (2012-10-09 20:25:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/11017024/13001
8 years, 2 months ago (2012-10-09 20:34:19 UTC) #10
joth
belated +joi to double check the DEPS changes.
8 years, 2 months ago (2012-10-09 21:33:32 UTC) #11
commit-bot: I haz the power
List of reviewers changed. joi@chromium.org did a drive-by without LGTM'ing!
8 years, 2 months ago (2012-10-09 22:40:40 UTC) #12
boliu
joth: Slipping in your style suggestions from downstream while waiting for Joi to review DEPS ...
8 years, 2 months ago (2012-10-09 23:57:16 UTC) #13
mnaganov (inactive)
http://codereview.chromium.org/11017024/diff/1/android_webview/common/aw_content_client.cc File android_webview/common/aw_content_client.cc (right): http://codereview.chromium.org/11017024/diff/1/android_webview/common/aw_content_client.cc#newcode52 android_webview/common/aw_content_client.cc:52: // TODO(boliu): Should we return a ChromeWebView/<version> or similar? ...
8 years, 2 months ago (2012-10-10 08:51:45 UTC) #14
Jói
DEPS LGTM
8 years, 2 months ago (2012-10-10 09:47:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/11017024/2004
8 years, 2 months ago (2012-10-10 13:59:13 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-10 16:01:48 UTC) #17
Change committed as 161120

Powered by Google App Engine
This is Rietveld 408576698