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

Issue 7780022: Fix GetChannel interface misuse in ThreadWatcher and ShutdownWatcher. (Closed)

Created:
9 years, 3 months ago by Mark Mentovai
Modified:
9 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix GetChannel interface misuse and Windows version logic in ThreadWatcher and ShutdownWatcher. GetChannel can return CHANNEL_STABLE, CHANNEL_BETA, CHANNEL_DEV, CHANNEL_CANARY, or CHANNEL_UNKNOWN. CHANNEL_UNKNOWN generally means "not Google Chrome", that is, Chromium. The existing code ignored the possibility of CHANNEL_UNKNOWN. Its mishandling of CHANNEL_STABLE resulted in fragile code. The existing code also doubled the timeouts on Windows XP only on certain channels, although the intent was to double them on Windows XP regardless of channel. BUG=96155, 95506, 90095 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100601

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -17 lines) Patch
M chrome/browser/metrics/thread_watcher.cc View 1 2 3 3 chunks +21 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mark Mentovai
http://codereview.chromium.org/7780022/diff/3/chrome/browser/metrics/thread_watcher.cc File chrome/browser/metrics/thread_watcher.cc (right): http://codereview.chromium.org/7780022/diff/3/chrome/browser/metrics/thread_watcher.cc#newcode431 chrome/browser/metrics/thread_watcher.cc:431: *unresponsive_threshold *= 2; I couldn’t figure out why you ...
9 years, 3 months ago (2011-09-10 18:50:38 UTC) #1
Mark Mentovai
Meant to include you too, Jim.
9 years, 3 months ago (2011-09-10 18:51:33 UTC) #2
Mark Mentovai
Patch set 3 does what I think Jim means on bug 96155 comment 2: adjusts ...
9 years, 3 months ago (2011-09-10 19:09:58 UTC) #3
jar (doing other things)
Thanks for looking at this. Raman and I have been working at a frantic pace ...
9 years, 3 months ago (2011-09-10 19:20:30 UTC) #4
Mark Mentovai
Patch set 4 makes all of the suggested changes. The intervals are always doubled on ...
9 years, 3 months ago (2011-09-10 19:32:38 UTC) #5
ramant (doing other things)
LGTM. Thanks for looking at this code and making the changes.
9 years, 3 months ago (2011-09-10 22:26:07 UTC) #6
ramant (doing other things)
On 2011/09/10 19:32:38, Mark Mentovai wrote: > Patch set 4 makes all of the suggested ...
9 years, 3 months ago (2011-09-10 22:43:11 UTC) #7
Mark Mentovai
9 years, 3 months ago (2011-09-10 23:17:59 UTC) #8
I checked this in as-is, with all of the suggested improvements, but without
changing any of the timings as there’s no consensus on what they should change
to. I’d be happy to make further adjustments to the timings if there’s agreement
on what those adjustments should be.

Powered by Google App Engine
This is Rietveld 408576698