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

Issue 6468002: Implementation of getCurrentProxySettings for proxy settings API. (Closed)

Created:
9 years, 10 months ago by battre
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Implementation of getCurrentProxySettings for proxy settings API. BUG=71666 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74807

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed function signature #

Patch Set 3 : Addressed Bernard's comments #

Patch Set 4 : Removed todo and ask mpcomplete now. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -20 lines) Patch
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api.h View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api.cc View 1 2 3 8 chunks +165 lines, -11 lines 0 comments Download
M chrome/browser/prefs/proxy_config_dictionary.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/proxy_prefs.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/prefs/proxy_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 2 chunks +24 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/experimental.proxy.html View 1 2 3 chunks +268 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/resources/extension_apitest.js View 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/proxy/auto/test.js View 1 chunk +13 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/proxy/direct/test.js View 1 chunk +12 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/proxy/individual/test.js View 2 chunks +36 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
battre
Please review. Thanks!
9 years, 10 months ago (2011-02-09 18:20:48 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/6468002/diff/1/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/6468002/diff/1/chrome/browser/extensions/extension_proxy_api.cc#newcode261 chrome/browser/extensions/extension_proxy_api.cc:261: if (profile_->IsOffTheRecord() && !incognito) { Does this really happen? ...
9 years, 10 months ago (2011-02-10 12:38:01 UTC) #2
battre
Thanks. I have addressed your comments. http://codereview.chromium.org/6468002/diff/1/chrome/browser/extensions/extension_proxy_api.cc File chrome/browser/extensions/extension_proxy_api.cc (right): http://codereview.chromium.org/6468002/diff/1/chrome/browser/extensions/extension_proxy_api.cc#newcode261 chrome/browser/extensions/extension_proxy_api.cc:261: if (profile_->IsOffTheRecord() && ...
9 years, 10 months ago (2011-02-10 13:42:36 UTC) #3
battre
Hi Matt, could you please have a look at this file http://codereview.chromium.org/6450006/diff/10001/chrome/browser/extensions/extension_proxy_api.cc (the entire file, ...
9 years, 10 months ago (2011-02-10 13:57:07 UTC) #4
Bernhard Bauer
LGTM.
9 years, 10 months ago (2011-02-10 16:00:51 UTC) #5
Matt Perry
On 2011/02/10 13:57:07, battre wrote: > Hi Matt, > > could you please have a ...
9 years, 10 months ago (2011-02-10 22:12:18 UTC) #6
battre
> > We are not quite sure how to handle the include_incognito flag correctly. - ...
9 years, 10 months ago (2011-02-10 23:11:22 UTC) #7
Matt Perry
On 2011/02/10 23:11:22, battre wrote: > > > We are not quite sure how to ...
9 years, 10 months ago (2011-02-11 00:06:52 UTC) #8
battre
> > > > I think the desired behavior is that an extension can modify ...
9 years, 10 months ago (2011-02-11 12:00:27 UTC) #9
Bernhard Bauer
On Fri, Feb 11, 2011 at 13:00, <battre@chromium.org> wrote: >> > > > I think ...
9 years, 10 months ago (2011-02-11 12:06:39 UTC) #10
Matt Perry
9 years, 10 months ago (2011-02-11 19:36:14 UTC) #11
On 2011/02/11 12:00:27, battre wrote:
> > > Would you disallow a call of setCustomProxySettings(*, incognito=true) if
> the
> > > "Allow in incognito" check box is not checked?
> > 
> > That would be my preference. "split" mode introduces a more subtle
> distinction,
> > though. A split-mode extension would have 2 running background page. If the
> > incognito bg page calls setCustomProxySettings(settings), it should probably
> > change the proxy for incognito mode.
> 
> I think if the incognito bg page in split mode calls setCustomProxySettings,
we
> can expect it to pass incognito=true and report a violation otherwise.

One of the goals of "split" mode was that the extension would not have to worry
about which profile its process was running in. Things would just work for that
profile.

> Anyway... I think we should defer this from this CL and discuss it in a larger
> scope. Bernhard is working on an API for Content Settings and I want to stick
to
> his API as closely as possible to have consistent APIs.
> 
> If you don't object, I would skip this topic for this CL.

Sure, that's fine with me.

Powered by Google App Engine
This is Rietveld 408576698