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

Issue 2085673002: Remove calls to MessageLoop::current() in extensions. (Closed)

Created:
4 years, 6 months ago by fdoray
Modified:
4 years, 5 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove calls to MessageLoop::current() in extensions. Why? The fact that there's a MessageLoop on the thread is an unnecessary implementation detail. When browser threads are migrated to base/task_scheduler, tasks will no longer have access to a MessageLoop. These changes were generated manually. BUG=616447 R=reillyg@chromium.org TBR=achuith@chromium.org Committed: https://crrev.com/4cfe32abb839f5e2c0a0b7f22ae068e46f1719ab Cr-Commit-Position: refs/heads/master@{#402906}

Patch Set 1 #

Patch Set 2 : fix build errors #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : fix tests #

Patch Set 5 : threadtaskrunnerhandle #

Patch Set 6 : fix tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -17 lines) Patch
M chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 1 comment Download
M chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 1 comment Download
M chrome/browser/notifications/extension_welcome_notification_unittest.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/browser/file_reader.h View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M extensions/browser/file_reader.cc View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M extensions/browser/process_manager.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/quota_service.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M extensions/browser/quota_service.cc View 1 2 3 4 3 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
Reilly Grant (use Gerrit)
This patch appears to be doing two things at once. I'm not sure why you ...
4 years, 5 months ago (2016-06-27 20:01:58 UTC) #1
fdoray
caitkp@: Can you review chrome/browser/safe_browsing/incident_reporting? Thanks. dewittj@: Can you review chrome/browser/notifications? Thanks. reillyg@: Can you ...
4 years, 5 months ago (2016-06-29 14:25:05 UTC) #3
dewittj
c/b/notifications lgtm
4 years, 5 months ago (2016-06-29 16:53:02 UTC) #4
Reilly Grant (use Gerrit)
lgtm
4 years, 5 months ago (2016-06-29 17:07:33 UTC) #5
Cait (Slow)
lgtm
4 years, 5 months ago (2016-06-29 18:41:04 UTC) #6
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/2085673002/80001
4 years, 5 months ago (2016-06-29 18:48:13 UTC) #9
fdoray
achuith@chromium.org: PTAL to chrome/browser/chromeos
4 years, 5 months ago (2016-06-29 18:54:13 UTC) #12
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/2085673002/100001
4 years, 5 months ago (2016-06-29 18:55:45 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-06-29 19:46:11 UTC) #17
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 19:47:19 UTC) #18
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/4cfe32abb839f5e2c0a0b7f22ae068e46f1719ab Cr-Commit-Position: refs/heads/master@{#402906}
4 years, 5 months ago (2016-06-29 19:48:52 UTC) #20
achuithb
4 years, 5 months ago (2016-06-30 10:06:29 UTC) #21
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/2085673002/diff/100001/chrome/browser/chromeo...
File chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc
(right):

https://codereview.chromium.org/2085673002/diff/100001/chrome/browser/chromeo...
chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_unittest.cc:56:
extensions::QuotaService::ScopedDisablePurgeForTesting
comment would be nice

https://codereview.chromium.org/2085673002/diff/100001/chrome/browser/chromeo...
File chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc (right):

https://codereview.chromium.org/2085673002/diff/100001/chrome/browser/chromeo...
chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc:73:
extensions::QuotaService::ScopedDisablePurgeForTesting
ditto

Powered by Google App Engine
This is Rietveld 408576698