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

Issue 279633003: Use non-static set_key interface on DataReductionProxySettings (Closed)

Created:
6 years, 7 months ago by bengr
Modified:
6 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Use non-static set_key interface on DataReductionProxySettings This removes the use of a static initializer and makes it possible for clients to pass a key without owning the memory where the key is stored (as would be the case if passed to a static const char*). BUG=371626, 371204 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269578

Patch Set 1 : #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : rebase #

Total comments: 12

Patch Set 4 : Addressed comments from mmenke and sgurun #

Total comments: 2

Patch Set 5 : rebase #

Total comments: 6

Patch Set 6 : #

Total comments: 2

Patch Set 7 : Addressed nit #

Patch Set 8 : #

Patch Set 9 : moved gyp #

Patch Set 10 : moved gyp #

Patch Set 11 : better gyp #

Patch Set 12 : rebase #

Patch Set 13 : gyp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -56 lines) Patch
M android_webview/browser/aw_login_delegate.cc View 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M android_webview/native/aw_contents_statics.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_settings.h View 1 2 3 4 5 5 chunks +19 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc View 1 2 3 4 5 8 chunks +23 lines, -30 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_settings_unittest.cc View 4 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
bengr
mmenke: profile_impl_io_data.cc sgurun: android_webview marq: everything else
6 years, 7 months ago (2014-05-09 00:11:44 UTC) #1
bengr
This also fixes 371204.
6 years, 7 months ago (2014-05-09 00:18:30 UTC) #2
sgurun-gerrit only
https://codereview.chromium.org/279633003/diff/40001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/279633003/diff/40001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode225 android_webview/browser/net/aw_url_request_context_getter.cc:225: main_cache->GetSession(), drp_settings->key()); I am not sure about this logic. ...
6 years, 7 months ago (2014-05-09 00:58:28 UTC) #3
bengr
https://codereview.chromium.org/279633003/diff/40001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/279633003/diff/40001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode225 android_webview/browser/net/aw_url_request_context_getter.cc:225: main_cache->GetSession(), drp_settings->key()); On 2014/05/09 00:58:28, sgurun wrote: > I ...
6 years, 7 months ago (2014-05-09 03:16:51 UTC) #4
mmenke
https://codereview.chromium.org/279633003/diff/50001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/279633003/diff/50001/chrome/browser/profiles/profile_impl_io_data.cc#newcode465 chrome/browser/profiles/profile_impl_io_data.cc:465: #if defined(SPDY_PROXY_AUTH_VALUE) Is this double #if really needed? https://codereview.chromium.org/279633003/diff/50001/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc ...
6 years, 7 months ago (2014-05-09 15:27:08 UTC) #5
bengr
https://codereview.chromium.org/279633003/diff/50001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/279633003/diff/50001/chrome/browser/profiles/profile_impl_io_data.cc#newcode465 chrome/browser/profiles/profile_impl_io_data.cc:465: #if defined(SPDY_PROXY_AUTH_VALUE) On 2014/05/09 15:27:08, mmenke wrote: > Is ...
6 years, 7 months ago (2014-05-09 15:47:27 UTC) #6
mmenke
profiles/ LGTM.
6 years, 7 months ago (2014-05-09 15:52:03 UTC) #7
sgurun-gerrit only
https://codereview.chromium.org/279633003/diff/130001/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc File components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/279633003/diff/130001/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc#newcode173 components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc:173: // This is a no-op unless the authentication parameters ...
6 years, 7 months ago (2014-05-09 16:39:25 UTC) #8
marq (ping after 24h)
LGTM with formatting nits. Appears no have no downstream impact on iOS. https://codereview.chromium.org/279633003/diff/150001/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h File components/data_reduction_proxy/browser/data_reduction_proxy_settings.h ...
6 years, 7 months ago (2014-05-09 17:00:05 UTC) #9
bengr
https://codereview.chromium.org/279633003/diff/130001/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc File components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/279633003/diff/130001/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc#newcode173 components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc:173: // This is a no-op unless the authentication parameters ...
6 years, 7 months ago (2014-05-09 17:12:20 UTC) #10
sgurun-gerrit only
https://codereview.chromium.org/279633003/diff/190001/android_webview/native/aw_contents_statics.cc File android_webview/native/aw_contents_statics.cc (right): https://codereview.chromium.org/279633003/diff/190001/android_webview/native/aw_contents_statics.cc#newcode58 android_webview/native/aw_contents_statics.cc:58: drp_settings->set_key(ConvertJavaStringToUTF8(env, key)); fix the alignment?
6 years, 7 months ago (2014-05-09 17:40:26 UTC) #11
bengr
https://codereview.chromium.org/279633003/diff/190001/android_webview/native/aw_contents_statics.cc File android_webview/native/aw_contents_statics.cc (right): https://codereview.chromium.org/279633003/diff/190001/android_webview/native/aw_contents_statics.cc#newcode58 android_webview/native/aw_contents_statics.cc:58: drp_settings->set_key(ConvertJavaStringToUTF8(env, key)); On 2014/05/09 17:40:26, sgurun wrote: > fix ...
6 years, 7 months ago (2014-05-09 17:54:23 UTC) #12
sgurun-gerrit only
On 2014/05/09 17:54:23, bengr1 wrote: > https://codereview.chromium.org/279633003/diff/190001/android_webview/native/aw_contents_statics.cc > File android_webview/native/aw_contents_statics.cc (right): > > https://codereview.chromium.org/279633003/diff/190001/android_webview/native/aw_contents_statics.cc#newcode58 > ...
6 years, 7 months ago (2014-05-09 23:50:09 UTC) #13
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 7 months ago (2014-05-10 03:17:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/279633003/320001
6 years, 7 months ago (2014-05-10 03:20:52 UTC) #15
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 7 months ago (2014-05-10 04:44:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/279633003/310014
6 years, 7 months ago (2014-05-10 04:45:39 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-10 09:02:26 UTC) #18
commit-bot: I haz the power
Change committed as 269578
6 years, 7 months ago (2014-05-10 12:16:53 UTC) #19
piman
https://codereview.chromium.org/279633003/diff/50001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/279633003/diff/50001/chrome/browser/profiles/profile_impl_io_data.cc#newcode465 chrome/browser/profiles/profile_impl_io_data.cc:465: #if defined(SPDY_PROXY_AUTH_VALUE) On 2014/05/09 15:27:08, mmenke wrote: > Is ...
6 years, 7 months ago (2014-05-12 19:19:23 UTC) #20
mmenke
https://codereview.chromium.org/279633003/diff/50001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/279633003/diff/50001/chrome/browser/profiles/profile_impl_io_data.cc#newcode465 chrome/browser/profiles/profile_impl_io_data.cc:465: #if defined(SPDY_PROXY_AUTH_VALUE) On 2014/05/12 19:19:24, piman wrote: > On ...
6 years, 7 months ago (2014-05-12 19:21:57 UTC) #21
piman
On Mon, May 12, 2014 at 12:21 PM, <mmenke@chromium.org> wrote: > > https://codereview.chromium.org/279633003/diff/50001/ > chrome/browser/profiles/profile_impl_io_data.cc ...
6 years, 7 months ago (2014-05-12 19:28:25 UTC) #22
mmenke
On 2014/05/12 19:28:25, piman wrote: > On Mon, May 12, 2014 at 12:21 PM, <mailto:mmenke@chromium.org> ...
6 years, 7 months ago (2014-05-12 19:40:21 UTC) #23
piman
On Mon, May 12, 2014 at 12:40 PM, <mmenke@chromium.org> wrote: > On 2014/05/12 19:28:25, piman ...
6 years, 7 months ago (2014-05-12 19:44:04 UTC) #24
bengr
On 2014/05/12 19:44:04, piman wrote: > On Mon, May 12, 2014 at 12:40 PM, <mailto:mmenke@chromium.org> ...
6 years, 7 months ago (2014-05-12 20:07:50 UTC) #25
piman
6 years, 7 months ago (2014-05-12 20:09:55 UTC) #26
On Mon, May 12, 2014 at 1:07 PM, <bengr@chromium.org> wrote:

> On 2014/05/12 19:44:04, piman wrote:
>
>  On Mon, May 12, 2014 at 12:40 PM, <mailto:mmenke@chromium.org> wrote:
>>
>
>  > On 2014/05/12 19:28:25, piman wrote:
>> >
>> >> On Mon, May 12, 2014 at 12:21 PM, <mailto:mmenke@chromium.org> wrote:
>> >>
>> >
>> >  >
>> >> > https://codereview.chromium.org/279633003/diff/50001/
>> >> > chrome/browser/profiles/profile_impl_io_data.cc
>> >> > File chrome/browser/profiles/profile_impl_io_data.cc (right):
>> >> >
>> >> > https://codereview.chromium.org/279633003/diff/50001/
>> >>
>> >> > chrome/browser/profiles/profile_impl_io_data.cc#newcode465
>> >> > chrome/browser/profiles/profile_impl_io_data.cc:465: #if
>> >> > defined(SPDY_PROXY_AUTH_VALUE)
>> >> > On 2014/05/12 19:19:24, piman wrote:
>> >> >
>> >> >> On 2014/05/09 15:27:08, mmenke wrote:
>> >> >> > Is this double #if really needed?
>> >> >>
>> >> >
>> >> >  Actually... it is.
>> >> >> clank/supplemental.gypi which makes this defined is sourced if
>> >> >>
>> >> > present,
>> >> >
>> >> >> regardless of the platform. However, DataReductionProxySettings is
>> not
>> >> >>
>> >> > present
>> >> >
>> >> >> on regular linux builds, so if you build that with clank/ checked
>> out,
>> >> >>
>> >> > it fails
>> >> >
>> >> >> to build.
>> >> >>
>> >> >
>> >> > I think it would make more sense to make it not defined, rather than
>> to
>> >> > modify C files.  Otherwise, we have SPDY_PROXY_AUTH_VALUE defined,
>> but
>> >> > aren't really supporting it, which is odd, and affects a bunch of
>> other
>> >> > files as well.
>> >> >
>> >>
>> >
>> >  Maybe... you mean by changing supplemental.gypi to define the
>> variables in
>> >> a condition block? or changing common.gypi to not add the defines on
>> the
>> >> platforms where it's not supported?
>> >> Either way, do you mind sending a patch?
>> >>
>> >
>> > Either one would be fine, but I was thinking of not including gypi files
>> > intended specifically for clank in combined linux+clank checkouts.
>>  Doing
>> > so
>> > seems really odd to me.  I defer to bengr for the patch - I'm not
>> familiar
>> > with
>> > the plumbing that added the value.
>> >
>>
>
>  supplemental.gypi in direct subdirs are always included no matter what.
>> This is done in gyp_chromium, independently of the platform (original use
>> case is src-internal). I don't think that's the mechanism you want to
>> tweak.
>> Or, you can have a miniature supplemental.gypi in clank/, that would
>> include supplemental-real.gypi under the platform condition.
>>
>
>
>  > https://codereview.chromium.org/279633003/
>> >
>>
>
>  To unsubscribe from this group and stop receiving emails from it, send an
>>
> email
>
>> to mailto:chromium-reviews+unsubscribe@chromium.org.
>>
>
> Ultimately, I'm fine with doing whatever you think is best, but for now, I
> think
> the most obvious course of action is to add the platform ifdefs back in.
> Shall I
> do that? We can revisit this later if we add support for platforms other
> than
> Android and iOS. OK?
>

SGTM

>
> https://codereview.chromium.org/279633003/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698