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

Issue 2891453004: Avoid unnecessary registry/plist reads (hundreds of them) by caching the brand code. (Closed)

Created:
3 years, 7 months ago by borisv
Modified:
3 years, 7 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid unnecessary registry/plist reads (hundreds of them) by caching the brand code. BUG=723072 Review-Url: https://codereview.chromium.org/2891453004 Cr-Commit-Position: refs/heads/master@{#472622} Committed: https://chromium.googlesource.com/chromium/src/+/4c703a924fc505015240e1ee859c6a9340d4be2e

Patch Set 1 #

Patch Set 2 : Update the comment location. #

Patch Set 3 : Minor change. #

Total comments: 2

Patch Set 4 : Changed the initialization pattern for the brand. #

Patch Set 5 : Minor formatting (space added). #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M chrome/browser/search_engines/ui_thread_search_terms_data.cc View 1 2 3 4 1 chunk +7 lines, -3 lines 1 comment Download

Messages

Total messages: 22 (7 generated)
grt (UTC plus 2)
https://codereview.chromium.org/2891453004/diff/40001/chrome/browser/search_engines/ui_thread_search_terms_data.cc File chrome/browser/search_engines/ui_thread_search_terms_data.cc (right): https://codereview.chromium.org/2891453004/diff/40001/chrome/browser/search_engines/ui_thread_search_terms_data.cc#newcode79 chrome/browser/search_engines/ui_thread_search_terms_data.cc:79: static std::string* brand = NULL; the idiomatic way i've ...
3 years, 7 months ago (2017-05-17 08:45:43 UTC) #3
Boris Vidolov
Thanks, Greg. PTAL. https://codereview.chromium.org/2891453004/diff/40001/chrome/browser/search_engines/ui_thread_search_terms_data.cc File chrome/browser/search_engines/ui_thread_search_terms_data.cc (right): https://codereview.chromium.org/2891453004/diff/40001/chrome/browser/search_engines/ui_thread_search_terms_data.cc#newcode79 chrome/browser/search_engines/ui_thread_search_terms_data.cc:79: static std::string* brand = NULL; On ...
3 years, 7 months ago (2017-05-17 18:37:11 UTC) #5
Boris Vidolov
3 years, 7 months ago (2017-05-17 21:39:24 UTC) #6
Peter Kasting
LGTM, but FWIW, I found the way you did it before Greg's suggested significantly more ...
3 years, 7 months ago (2017-05-17 22:12:45 UTC) #7
Boris Vidolov
On 2017/05/17 22:12:45, Peter Kasting wrote: > LGTM, but FWIW, I found the way you ...
3 years, 7 months ago (2017-05-17 23:10:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2891453004/80001
3 years, 7 months ago (2017-05-17 23:11:57 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/4c703a924fc505015240e1ee859c6a9340d4be2e
3 years, 7 months ago (2017-05-18 01:31:23 UTC) #13
Lei Zhang
https://codereview.chromium.org/2891453004/diff/80001/chrome/browser/search_engines/ui_thread_search_terms_data.cc File chrome/browser/search_engines/ui_thread_search_terms_data.cc (right): https://codereview.chromium.org/2891453004/diff/80001/chrome/browser/search_engines/ui_thread_search_terms_data.cc#newcode80 chrome/browser/search_engines/ui_thread_search_terms_data.cc:80: auto extracted = new std::string(); This broke official builds. ...
3 years, 7 months ago (2017-05-18 01:52:50 UTC) #15
Lei Zhang
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2893483004/ by thestig@chromium.org. ...
3 years, 7 months ago (2017-05-18 01:57:14 UTC) #16
Boris Vidolov
On 2017/05/18 01:52:50, Lei Zhang wrote: > https://codereview.chromium.org/2891453004/diff/80001/chrome/browser/search_engines/ui_thread_search_terms_data.cc > File chrome/browser/search_engines/ui_thread_search_terms_data.cc (right): > > https://codereview.chromium.org/2891453004/diff/80001/chrome/browser/search_engines/ui_thread_search_terms_data.cc#newcode80 ...
3 years, 7 months ago (2017-05-18 01:57:33 UTC) #17
Lei Zhang
On 2017/05/18 01:57:33, Boris Vidolov wrote: > On 2017/05/18 01:52:50, Lei Zhang wrote: > > ...
3 years, 7 months ago (2017-05-18 02:03:25 UTC) #18
borisv
On 2017/05/18 02:03:25, Lei Zhang wrote: > On 2017/05/18 01:57:33, Boris Vidolov wrote: > > ...
3 years, 7 months ago (2017-05-18 02:04:58 UTC) #19
Lei Zhang
On 2017/05/18 02:04:58, borisv wrote: > Well, the Windows official build succeeded on my machine. ...
3 years, 7 months ago (2017-05-18 02:08:24 UTC) #20
findit-for-me
Findit (https://goo.gl/kROfz5) confirmed this CL at revision 472622 as the culprit for failures in the ...
3 years, 7 months ago (2017-05-18 02:11:08 UTC) #21
borisv
3 years, 7 months ago (2017-05-18 06:11:56 UTC) #22
Message was sent while issue was closed.
On 2017/05/18 02:11:08, findit-for-me wrote:
> Findit (https://goo.gl/kROfz5) confirmed this CL at revision 472622 as the
> culprit for
> failures in the build cycles as shown on:
>
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Thank you, Lei. I reproduced the failure on my Mac. I will re-send the change
for review tomorrow morning.

Powered by Google App Engine
This is Rietveld 408576698