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

Issue 1606007: Move EnvironmentVariableGetter from base/linux_util.h to base/env_var.h. Labe... (Closed)

Created:
10 years, 8 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai, mattm
CC:
chromium-reviews, ben+cc_chromium.org, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, tfarina (gmail-do not use)
Visibility:
Public.

Description

Move EnvironmentVariableGetter from base/linux_util.h to base/env_var.h and rename it EnvVarGetter. Label base::SysInfo::{Get,Has}EnvVar as deprecated. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43559

Patch Set 1 #

Patch Set 2 : fix typos for windows code #

Total comments: 21

Patch Set 3 : fix typos for windows code, address comments #

Patch Set 4 : add comment #

Patch Set 5 : fix windows build for good this time? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -179 lines) Patch
M app/gtk_util.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M base/base.gypi View 1 2 8 chunks +10 lines, -8 lines 0 comments Download
M base/base_paths_posix.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
A base/env_var.h View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A base/env_var.cc View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
M base/linux_util.h View 1 2 4 chunks +12 lines, -23 lines 0 comments Download
M base/linux_util.cc View 1 2 9 chunks +17 lines, -53 lines 0 comments Download
M base/sys_info.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/gtk/options/advanced_contents_gtk.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/shell_integration_linux.cc View 1 2 7 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/shell_integration_unittest.cc View 1 2 7 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/common/chrome_paths_linux.cc View 1 2 6 chunks +7 lines, -11 lines 0 comments Download
M net/proxy/proxy_config_service_linux.h View 1 2 5 chunks +7 lines, -8 lines 0 comments Download
M net/proxy/proxy_config_service_linux.cc View 1 2 10 chunks +16 lines, -16 lines 0 comments Download
M net/proxy/proxy_config_service_linux_unittest.cc View 1 2 7 chunks +8 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Lei Zhang
Matt: I think more places can benefit from EnvironmentVariableGetter, so I'm moving it out of ...
10 years, 8 months ago (2010-04-02 21:17:15 UTC) #1
Mark Mentovai
EnvironmentVariableGetter is kind of a mouthful, innit?
10 years, 8 months ago (2010-04-02 21:39:35 UTC) #2
Mark Mentovai
LGTM as far as the move goes. http://codereview.chromium.org/1606007/diff/20001/15009 File base/env_var.cc (right): http://codereview.chromium.org/1606007/diff/20001/15009#newcode29 base/env_var.cc:29: // are ...
10 years, 8 months ago (2010-04-02 21:45:11 UTC) #3
tfarina (gmail-do not use)
http://codereview.chromium.org/1606007/diff/20001/15011 File base/base.gypi (right): http://codereview.chromium.org/1606007/diff/20001/15011#newcode72 base/base.gypi:72: 'env_var.cc', nit: shouldn't be above of event_*? http://codereview.chromium.org/1606007/diff/20001/15012 File ...
10 years, 8 months ago (2010-04-02 21:57:41 UTC) #4
Lei Zhang
http://codereview.chromium.org/1606007/diff/20001/15011 File base/base.gypi (right): http://codereview.chromium.org/1606007/diff/20001/15011#newcode72 base/base.gypi:72: 'env_var.cc', On 2010/04/02 21:57:42, tfarina wrote: > nit: shouldn't ...
10 years, 8 months ago (2010-04-02 22:18:28 UTC) #5
mattm
http://codereview.chromium.org/1606007/diff/20001/15009 File base/env_var.cc (right): http://codereview.chromium.org/1606007/diff/20001/15009#newcode29 base/env_var.cc:29: // are lowercase, which is inconsistent. Let's try to ...
10 years, 8 months ago (2010-04-02 22:28:55 UTC) #6
Lei Zhang
10 years, 8 months ago (2010-04-02 22:42:19 UTC) #7
On 2010/04/02 22:28:55, mattm wrote:
> http://codereview.chromium.org/1606007/diff/20001/15009
> File base/env_var.cc (right):
> 
> http://codereview.chromium.org/1606007/diff/20001/15009#newcode29
> base/env_var.cc:29: // are lowercase, which is inconsistent. Let's try to be
> helpful
> On 2010/04/02 22:18:28, Lei Zhang wrote:
> > On 2010/04/02 21:45:11, Mark Mentovai wrote:
> > > "Helpful?"
> > > 
> > > Tangibly, what does this gain?
> > 
> > Deferring to Matt.
> 
> 
> There are some vars like http_proxy which are usually lowercase, but I guess
> some other apps may want it uppercase or users might make it uppercase to
> conform with normal env vars, so we accept both.  (eg, wget manual also
mentions
> it in both)
> 
> So being "helpful" I guess means just saving the caller from having to do both
> calls themselves in those cases.

Ok, I added that as an example of helpfulness in patch set 4.

Powered by Google App Engine
This is Rietveld 408576698