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

Issue 717223002: Browser watcher end-end-to-end . (Closed)

Created:
6 years, 1 month ago by Sigurður Ásgeirsson
Modified:
6 years ago
CC:
chromium-reviews, sadrul, Ilya Sherman, ben+ash_chromium.org, asvitkine+watch_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git/+/lkgr
Project:
chromium
Visibility:
Public.

Description

Not for submission. BUG=

Patch Set 1 #

Patch Set 2 : Drop paths everywhere, complete testing. Cleanup most trouble. #

Patch Set 3 : Only launch watcher under stats consent. #

Patch Set 4 : Move to components #

Total comments: 25

Patch Set 5 : Merge ToT. #

Patch Set 6 : Address Erik's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1203 lines, -14 lines) Patch
M chrome/app/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/client_util.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/app/client_util.cc View 1 2 3 4 5 7 chunks +63 lines, -12 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A components/browser_watcher.gypi View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download
A components/browser_watcher/DEPS View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A + components/browser_watcher/OWNERS View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A components/browser_watcher/watcher_client_win.h View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_client_win.cc View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_client_win_unittest.cc View 1 2 3 1 chunk +193 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_main_api_win.h View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_main_api_win.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_main_win.cc View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_metrics_provider_win.h View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_metrics_provider_win.cc View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_metrics_provider_win_unittest.cc View 1 2 3 1 chunk +108 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_win.h View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_win.cc View 1 2 3 4 5 1 chunk +103 lines, -0 lines 0 comments Download
A components/browser_watcher/watcher_win_unittest.cc View 1 2 3 1 chunk +212 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (5 generated)
erikwright (departed)
First high-level pass. I'll reserve detailed review for the individual CLs. https://codereview.chromium.org/717223002/diff/60001/components/browser_watcher/watcher_client_win.h File components/browser_watcher/watcher_client_win.h (right): ...
6 years, 1 month ago (2014-11-14 19:46:10 UTC) #2
Sigurður Ásgeirsson
Thanks - I'm breaking this up for proper review and landing now, please do not ...
6 years, 1 month ago (2014-11-17 15:26:59 UTC) #6
erikwright (departed)
6 years, 1 month ago (2014-11-17 15:35:17 UTC) #7
No new comments, but a response to your question.

https://codereview.chromium.org/717223002/diff/60001/components/browser_watch...
File components/browser_watcher/watcher_win.h (right):

https://codereview.chromium.org/717223002/diff/60001/components/browser_watch...
components/browser_watcher/watcher_win.h:27: 
On 2014/11/17 15:26:58, Sigurður Ásgeirsson wrote:
> On 2014/11/14 19:46:10, erikwright wrote:
> > an explicit out-of-line destructor is required.
> 
> Sure, why?

The default destructor will be inlined, which violates Chromium coding style and
is contra-indicated (though not explicitly banned) by Google style guide.

http://www.chromium.org/developers/coding-style/cpp-dos-and-donts#TOC-Stop-in...
http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Inline_Functions

There is a Clang rule that enforces this, but of course it won't run on your
Windows-only code.

The gist of the Clang rule is that it calculates a "complexity" score for the
destructor and prevents inlining if it is too high. Pretty much any non-POD
member pushes the complexity score over the threshold.

Powered by Google App Engine
This is Rietveld 408576698