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

Issue 2239010: Use getfqdn() instead of gethostname() (Closed)

Created:
10 years, 7 months ago by M-A Ruel
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Use getfqdn() instead of gethostname() Otherwise it would return the naked host name most of the time, especially on Windows. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48432

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M breakpad.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
M-A Ruel
10 years, 7 months ago (2010-05-27 17:07:09 UTC) #1
Sigurður Ásgeirsson
10 years, 7 months ago (2010-05-27 17:59:36 UTC) #2
lgtm.

On Thu, May 27, 2010 at 1:07 PM, <maruel@chromium.org> wrote:

> Reviewers: Ruðrugis,
>
> Description:
> Use getfqdn() instead of gethostname()
>
> Otherwise it would return the naked host name most of the time, especially
> on
> Windows.
>
> Please review this at http://codereview.chromium.org/2239010/show
>
> Affected files:
>  M breakpad.py
>
>
> Index: breakpad.py
> diff --git a/breakpad.py b/breakpad.py
> index
>
356774d89bc9ee574edfb2fe4908adbc888093b7..6818c9e0e882986323d39bd4464d68da45dca7c3
> 100644
> --- a/breakpad.py
> +++ b/breakpad.py
> @@ -43,6 +43,6 @@ def CheckForException():
>
>
>  if (not 'test' in sys.modules['__main__'].__file__ and
> -    socket.gethostname().endswith('.google.com')):
> +    socket.getfqdn().endswith('.google.com')):
>   # Skip unit tests and we don't want anything from non-googler.
>   atexit.register(CheckForException)
>
>
>

Powered by Google App Engine
This is Rietveld 408576698