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

Issue 2888693003: Remove the usage of BrowserThread::FILE in the shell_integration* files (Closed)

Created:
3 years, 7 months ago by Patrick Monette
Modified:
3 years, 5 months ago
Reviewers:
Lei Zhang, robliao, gab, benwells
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the usage of BrowserThread::FILE in the shell_integration* files The usage of BrowserThread::FILE is deprecated in favor of the post_task.h API. BUG=689520 Review-Url: https://codereview.chromium.org/2888693003 Cr-Commit-Position: refs/heads/master@{#476129} Committed: https://chromium.googlesource.com/chromium/src/+/b18379f369eec8d994cca85d1133f3fac5818a4a

Patch Set 1 #

Patch Set 2 : stuff #

Patch Set 3 : Rebase on ProtocolHandlerRegistry change #

Patch Set 4 : Again #

Total comments: 4

Patch Set 5 : Add SequenceChecker and make all calls to SetAsDefault share a sequence #

Total comments: 16

Patch Set 6 : Stuff #

Total comments: 11

Patch Set 7 : Gab comments #

Patch Set 8 : Added a comment and fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -45 lines) Patch
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 3 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/shell_integration.cc View 1 2 3 4 5 6 7 5 chunks +38 lines, -7 lines 0 comments Download
M chrome/browser/shell_integration_linux.cc View 9 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 18 chunks +35 lines, -19 lines 0 comments Download

Messages

Total messages: 52 (33 generated)
Patrick Monette
PTAL
3 years, 7 months ago (2017-05-19 21:08:31 UTC) #22
Lei Zhang
lgtm https://codereview.chromium.org/2888693003/diff/60001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/2888693003/diff/60001/chrome/browser/shell_integration.cc#newcode7 chrome/browser/shell_integration.cc:7: #include "base//task_scheduler/post_task.h" Extra / https://codereview.chromium.org/2888693003/diff/60001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (left): ...
3 years, 7 months ago (2017-05-19 23:23:13 UTC) #23
Patrick Monette
gab@ PTAL at shell_integration.cc https://codereview.chromium.org/2888693003/diff/60001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/2888693003/diff/60001/chrome/browser/shell_integration.cc#newcode7 chrome/browser/shell_integration.cc:7: #include "base//task_scheduler/post_task.h" On 2017/05/19 23:23:13, ...
3 years, 7 months ago (2017-05-26 01:50:13 UTC) #25
gab
https://codereview.chromium.org/2888693003/diff/80001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/2888693003/diff/80001/chrome/browser/shell_integration.cc#newcode140 chrome/browser/shell_integration.cc:140: base::CreateSequencedTaskRunnerWithTraits({base::MayBlock()}) Why does this need to be called on ...
3 years, 7 months ago (2017-05-26 18:44:06 UTC) #26
Patrick Monette
gab@ Another look? https://codereview.chromium.org/2888693003/diff/80001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/2888693003/diff/80001/chrome/browser/shell_integration.cc#newcode140 chrome/browser/shell_integration.cc:140: base::CreateSequencedTaskRunnerWithTraits({base::MayBlock()}) On 2017/05/26 18:44:05, gab wrote: ...
3 years, 6 months ago (2017-05-29 18:54:14 UTC) #27
gab
Should also have benwells@ look at chrome/browser/custom_handlers/* I think https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_integration.cc#newcode177 chrome/browser/shell_integration.cc:177: ...
3 years, 6 months ago (2017-05-30 19:22:21 UTC) #29
benwells
lgtm
3 years, 6 months ago (2017-05-31 03:51:54 UTC) #30
Patrick Monette
PTAL I moved some code to a utility function https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_integration.cc#newcode177 chrome/browser/shell_integration.cc:177: ...
3 years, 6 months ago (2017-05-31 16:13:57 UTC) #31
gab
lgtm
3 years, 6 months ago (2017-05-31 16:21:29 UTC) #32
Patrick Monette
Thanks!
3 years, 6 months ago (2017-05-31 16:53:58 UTC) #33
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/2888693003/120001
3 years, 6 months ago (2017-05-31 16:54:31 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/468510) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 6 months ago (2017-05-31 17:09:26 UTC) #38
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/2888693003/140001
3 years, 6 months ago (2017-05-31 17:42:33 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/468568)
3 years, 6 months ago (2017-05-31 19:42:05 UTC) #43
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/2888693003/140001
3 years, 6 months ago (2017-06-01 00:43:39 UTC) #45
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/b18379f369eec8d994cca85d1133f3fac5818a4a
3 years, 6 months ago (2017-06-01 01:19:01 UTC) #48
robliao
https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_integration.cc#newcode177 chrome/browser/shell_integration.cc:177: static scoped_refptr<base::SequencedTaskRunner>* task_runner = nullptr; On 2017/05/31 16:13:57, Patrick ...
3 years, 5 months ago (2017-07-14 21:13:13 UTC) #50
Patrick Monette
https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_integration.cc#newcode177 chrome/browser/shell_integration.cc:177: static scoped_refptr<base::SequencedTaskRunner>* task_runner = nullptr; On 2017/07/14 21:13:13, robliao ...
3 years, 5 months ago (2017-07-14 21:25:34 UTC) #51
robliao
3 years, 5 months ago (2017-07-14 21:30:57 UTC) #52
Message was sent while issue was closed.
https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_i...
File chrome/browser/shell_integration.cc (right):

https://codereview.chromium.org/2888693003/diff/100001/chrome/browser/shell_i...
chrome/browser/shell_integration.cc:177: static
scoped_refptr<base::SequencedTaskRunner>* task_runner = nullptr;
On 2017/07/14 21:25:34, Patrick Monette wrote:
> On 2017/07/14 21:13:13, robliao wrote:
> > On 2017/05/31 16:13:57, Patrick Monette wrote:
> > > On 2017/05/30 19:22:21, gab wrote:
> > > > I think this can just be a
> > > > 
> > > > static scoped_refptr<base::SequencedTaskRunner> task_runner;
> > > > 
> > > > without being a scoped_refptr*
> > > 
> > > As per offline discussion, keeping this as a pointer since static
variables
> > must
> > > be POD.
> > 
> > Wait, why must function static variables be POD? Are we just attempting to
> avoid
> > destruction here?
> 
> Prescribed by the style guide.
> https://google.github.io/styleguide/cppguide.html#Static_and_Global_Variables

Got it. I thought that only applied at the global scope.

Powered by Google App Engine
This is Rietveld 408576698