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

Issue 93383002: Changed fake callbacks to post tasks asynchronously. (Closed)

Created:
7 years ago by Darren Krahn
Modified:
7 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, dkrahn+watch_chromium.org
Visibility:
Public.

Description

Changed fake callbacks to post tasks asynchronously. This catches bugs related to parameter lifetime that are not caught when the Run() method is called directly. See crbug.com/315624 for an example. BUG=chromium:316249 TEST=ran unit tests with and without fix for crbug.com/315624 R=nkostylev@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238512

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -7 lines) Patch
M chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc View 1 8 chunks +24 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Darren Krahn
+bartfab
7 years ago (2013-11-28 01:14:34 UTC) #1
bartfab (slow)
lgtm https://codereview.chromium.org/93383002/diff/1/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc File chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc (right): https://codereview.chromium.org/93383002/diff/1/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc#newcode54 chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc:54: content::BrowserThread::PostTask( Nit 1: #include "content/public/browser/browser_thread.h" Nit 2: You ...
7 years ago (2013-11-28 12:31:01 UTC) #2
Nikita (slow)
lgtm with Bartosz's nits addressed. This test now catches previous regression with if fix is ...
7 years ago (2013-11-28 12:56:45 UTC) #3
Darren Krahn
https://codereview.chromium.org/93383002/diff/1/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc File chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc (right): https://codereview.chromium.org/93383002/diff/1/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc#newcode54 chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc:54: content::BrowserThread::PostTask( On 2013/11/28 12:31:01, bartfab wrote: > Nit 1: ...
7 years ago (2013-12-03 02:04:10 UTC) #4
Darren Krahn
On 2013/11/28 12:56:45, Nikita Kostylev wrote: > lgtm with Bartosz's nits addressed. > > This ...
7 years ago (2013-12-03 02:04:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/93383002/20001
7 years ago (2013-12-03 18:38:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/93383002/20001
7 years ago (2013-12-03 19:16:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/93383002/20001
7 years ago (2013-12-03 23:45:21 UTC) #8
commit-bot: I haz the power
7 years ago (2013-12-04 01:06:49 UTC) #9
Message was sent while issue was closed.
Change committed as 238512

Powered by Google App Engine
This is Rietveld 408576698