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

Issue 155183002: Add ApiActivityMonitor to decouple ActivityLog from low-level extensions code (Closed)

Created:
6 years, 10 months ago by James Cook
Modified:
6 years, 10 months ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, tfarina, felt, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add ApiActivityMonitor to decouple ActivityLog from low-level extensions code * Introduce ApiActivityMonitor interface and make ActivityLog implement it * Use it to replace EventRouter's one-off EventDispatchObserver, which was kind of ugly. * Use it for function call notifications from ExtensionFunctionDispatcher This allows app_shell to use ExtensionFunctionDispatcher without an ActivityLog and gets us another step closer to moving EFD into src/extensions. BUG=332986, 339595 TEST=browser_tests Extension* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249324

Patch Set 1 #

Patch Set 2 : rebase, using BrowserThread (activity_log) #

Patch Set 3 : rebase (activity_log) #

Total comments: 2

Patch Set 4 : rebase3 (activity_log) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -123 lines) Patch
M apps/shell/browser/shell_extensions_browser_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_database.h View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.h View 1 2 3 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log.cc View 4 chunks +24 lines, -8 lines 0 comments Download
M chrome/browser/extensions/activity_log/counting_policy_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 5 chunks +25 lines, -25 lines 0 comments Download
A extensions/browser/api_activity_monitor.h View 1 chunk +39 lines, -0 lines 0 comments Download
M extensions/browser/event_router.h View 5 chunks +0 lines, -30 lines 0 comments Download
M extensions/browser/event_router.cc View 7 chunks +35 lines, -48 lines 0 comments Download
M extensions/browser/extensions_browser_client.h View 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
James Cook
yoz, PTAL felt, FYI
6 years, 10 months ago (2014-02-04 23:43:21 UTC) #1
James Cook
Friendly ping?
6 years, 10 months ago (2014-02-05 23:28:10 UTC) #2
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/155183002/diff/100001/chrome/browser/extensions/extension_function_dispatcher.cc File chrome/browser/extensions/extension_function_dispatcher.cc (right): https://chromiumcodereview.appspot.com/155183002/diff/100001/chrome/browser/extensions/extension_function_dispatcher.cc#newcode71 chrome/browser/extensions/extension_function_dispatcher.cc:71: extensions::ExtensionsBrowserClient::Get()->GetApiActivityMonitor( Since this won't change for the lifetime ...
6 years, 10 months ago (2014-02-06 00:31:02 UTC) #3
James Cook
https://codereview.chromium.org/155183002/diff/100001/chrome/browser/extensions/extension_function_dispatcher.cc File chrome/browser/extensions/extension_function_dispatcher.cc (right): https://codereview.chromium.org/155183002/diff/100001/chrome/browser/extensions/extension_function_dispatcher.cc#newcode71 chrome/browser/extensions/extension_function_dispatcher.cc:71: extensions::ExtensionsBrowserClient::Get()->GetApiActivityMonitor( On 2014/02/06 00:31:03, Yoyo Zhou wrote: > Since ...
6 years, 10 months ago (2014-02-06 00:49:23 UTC) #4
Yoyo Zhou
On 2014/02/06 00:49:23, James Cook wrote: > https://codereview.chromium.org/155183002/diff/100001/chrome/browser/extensions/extension_function_dispatcher.cc > File chrome/browser/extensions/extension_function_dispatcher.cc (right): > > https://codereview.chromium.org/155183002/diff/100001/chrome/browser/extensions/extension_function_dispatcher.cc#newcode71 ...
6 years, 10 months ago (2014-02-06 00:50:22 UTC) #5
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 10 months ago (2014-02-06 00:55:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/155183002/190001
6 years, 10 months ago (2014-02-06 01:03:38 UTC) #7
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 10:03:45 UTC) #8
Message was sent while issue was closed.
Change committed as 249324

Powered by Google App Engine
This is Rietveld 408576698