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

Issue 482993003: Move logic to clear ExtensionAction values to ExtensionActionAPI (Closed)

Created:
6 years, 4 months ago by Devlin
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Move logic to clear ExtensionAction values to ExtensionActionAPI Since we are changing where page actions will show up, it makes sense to not rely on PageActionController (which is attached to the location bar) to clear the page action values. Since we also have to clear browser action values, it makes sense to combine these in the ExtensionActionAPI. Cherries on top: - Remove a duplicate histogram - Make ExtensionActionManager::Get() use a BrowserContext TBR=avi@chromium.org (cocoa - add profile.h to use a profile as a browser context) BUG=397259 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291508

Patch Set 1 : #

Total comments: 7

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Mac compile fix #

Patch Set 4 : Latest master for CQ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -61 lines) Patch
M chrome/browser/extensions/api/extension_action/extension_action_api.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_action_api.cc View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_action_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_action_manager.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/installed_loader.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/page_action_controller.cc View 1 chunk +2 lines, -26 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 3 chunks +2 lines, -22 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_action_button.mm View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Devlin
https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc File chrome/browser/extensions/installed_loader.cc (left): https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc#oldcode548 chrome/browser/extensions/installed_loader.cc:548: UMA_HISTOGRAM_COUNTS_100("Extensions.LoadPageAction", page_action_count); I'm fairly certain that this and PageActionController.ExtensionsWithPageActions ...
6 years, 4 months ago (2014-08-20 22:43:37 UTC) #1
Finnur
https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc File chrome/browser/extensions/installed_loader.cc (left): https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc#oldcode548 chrome/browser/extensions/installed_loader.cc:548: UMA_HISTOGRAM_COUNTS_100("Extensions.LoadPageAction", page_action_count); I suspect they don't measure the same ...
6 years, 4 months ago (2014-08-21 11:04:21 UTC) #2
Devlin
https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc File chrome/browser/extensions/installed_loader.cc (left): https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc#oldcode548 chrome/browser/extensions/installed_loader.cc:548: UMA_HISTOGRAM_COUNTS_100("Extensions.LoadPageAction", page_action_count); On 2014/08/21 11:04:21, Finnur wrote: > I ...
6 years, 4 months ago (2014-08-21 14:05:44 UTC) #3
Finnur
https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc File chrome/browser/extensions/installed_loader.cc (left): https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc#oldcode548 chrome/browser/extensions/installed_loader.cc:548: UMA_HISTOGRAM_COUNTS_100("Extensions.LoadPageAction", page_action_count); Yeah, after digging some more I realize ...
6 years, 4 months ago (2014-08-21 14:19:19 UTC) #4
Devlin
https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc File chrome/browser/extensions/installed_loader.cc (left): https://codereview.chromium.org/482993003/diff/20001/chrome/browser/extensions/installed_loader.cc#oldcode548 chrome/browser/extensions/installed_loader.cc:548: UMA_HISTOGRAM_COUNTS_100("Extensions.LoadPageAction", page_action_count); On 2014/08/21 14:19:18, Finnur wrote: > Yeah, ...
6 years, 4 months ago (2014-08-21 15:23:02 UTC) #5
Finnur
OK, fine. LGTM.
6 years, 4 months ago (2014-08-21 15:39:29 UTC) #6
Devlin
Mark, mind taking a quick look at histograms.xml? (Just removing an unneeded entry.)
6 years, 4 months ago (2014-08-21 20:52:51 UTC) #7
Mark P
https://codereview.chromium.org/482993003/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/482993003/diff/40001/tools/metrics/histograms/histograms.xml#oldcode7669 tools/metrics/histograms/histograms.xml:7669: -<histogram name="Extensions.LoadPageAction"> Was this histogram ever recorded? If so, ...
6 years, 4 months ago (2014-08-21 20:55:19 UTC) #8
Devlin
https://codereview.chromium.org/482993003/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/482993003/diff/40001/tools/metrics/histograms/histograms.xml#oldcode7669 tools/metrics/histograms/histograms.xml:7669: -<histogram name="Extensions.LoadPageAction"> On 2014/08/21 20:55:18, Mark P wrote: > ...
6 years, 4 months ago (2014-08-21 21:12:29 UTC) #9
Mark P
lgtm https://codereview.chromium.org/482993003/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/482993003/diff/40001/tools/metrics/histograms/histograms.xml#oldcode7669 tools/metrics/histograms/histograms.xml:7669: -<histogram name="Extensions.LoadPageAction"> On 2014/08/21 21:12:29, Devlin wrote: > ...
6 years, 4 months ago (2014-08-21 21:19:38 UTC) #10
Devlin
On 2014/08/21 21:19:38, Mark P wrote: > lgtm > > https://codereview.chromium.org/482993003/diff/40001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (left): ...
6 years, 4 months ago (2014-08-21 21:21:33 UTC) #11
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 4 months ago (2014-08-22 19:12:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/482993003/80001
6 years, 4 months ago (2014-08-22 19:14:30 UTC) #13
Devlin
The CQ bit was unchecked by rdevlin.cronin@chromium.org
6 years, 4 months ago (2014-08-22 19:57:46 UTC) #14
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 4 months ago (2014-08-22 19:59:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/482993003/80001
6 years, 4 months ago (2014-08-22 20:00:54 UTC) #16
Avi (use Gerrit)
I assume you added me for chrome/browser/ui/cocoa. LGTM
6 years, 4 months ago (2014-08-22 20:23:47 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 20:27:36 UTC) #18
Devlin
On 2014/08/22 20:23:47, Avi wrote: > I assume you added me for chrome/browser/ui/cocoa. LGTM Yep ...
6 years, 4 months ago (2014-08-22 20:27:49 UTC) #19
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 21:38:27 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (80001) as 291508

Powered by Google App Engine
This is Rietveld 408576698