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

Issue 20909002: Correct the flag: is_extension_upgrade, which denote whether the extension is being upgrading. (Closed)

Created:
7 years, 4 months ago by zhchbin
Modified:
7 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Correct the flag: is_extension_upgrade, which denote whether the extension is being upgrading. In the function BrowserActionsContainer::BrowserActionAdded of chrome/browser/ui/views/browser_actions_container.cc, if the extension is marked as upgrading, it will stop enlarge the container if it was already at maximum size. The upgrading extension didn't remove the browser action, so it works correctly. However, when a extension is crashed (The browser action will be removed if it has) and reloaded (will add the browser action icon back if it has), it shouldn't be marked as upgrading. The bug is introduced by http://src.chromium.org/viewvc/chrome?revision=196634&view=revision. BUG=261996 TEST=On Windows, reload a crashed extension shouldn't resize the browser action container of browser. For more detail, please refer to the bug. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216407

Patch Set 1 #

Patch Set 2 : Remove nit. #

Total comments: 2

Patch Set 3 : Remove duplicated call. #

Patch Set 4 : Better readability. #

Total comments: 1

Patch Set 5 : Update as comments. #

Patch Set 6 : Shouldn't break CheckPermissionsIncrease. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 5 chunks +13 lines, -9 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
zhchbin
Please review.
7 years, 4 months ago (2013-07-27 13:08:55 UTC) #1
asargent_no_longer_on_chrome
Do you have the correct bug number in the BUG= field of the description here? ...
7 years, 4 months ago (2013-07-29 23:09:01 UTC) #2
zhchbin
I have also updated the issue description for better understanding. Please take a look. https://codereview.chromium.org/20909002/diff/3001/chrome/browser/extensions/extension_service.cc ...
7 years, 4 months ago (2013-07-30 01:46:41 UTC) #3
zhchbin
https://codereview.chromium.org/20909002/diff/11001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (left): https://codereview.chromium.org/20909002/diff/11001/chrome/browser/extensions/extension_service.cc#oldcode2001 chrome/browser/extensions/extension_service.cc:2001: DCHECK_NE(extension, old); As my comment, this DCHECK_NE make no ...
7 years, 4 months ago (2013-07-30 01:53:56 UTC) #4
zhchbin
Ping for review.
7 years, 4 months ago (2013-07-31 14:05:42 UTC) #5
dhnishi (use Chromium)
One unintended side-effect of a crashed extension being reloaded when it is not marked as ...
7 years, 4 months ago (2013-07-31 19:09:21 UTC) #6
zhchbin
On 2013/07/31 19:09:21, Daniel Nishi wrote: > One unintended side-effect of a crashed extension being ...
7 years, 4 months ago (2013-08-01 00:49:51 UTC) #7
asargent_no_longer_on_chrome
lgtm, thanks for the patch and apologies for review latency
7 years, 4 months ago (2013-08-01 17:50:51 UTC) #8
dhnishi (use Chromium)
It looks like this patch removes the possibility of unpacked extensions being reloaded being marked ...
7 years, 4 months ago (2013-08-01 17:55:50 UTC) #9
asargent_no_longer_on_chrome
oops, good catch DHNishi - I misread the code. The current patch does not lgtm ...
7 years, 4 months ago (2013-08-01 18:10:05 UTC) #10
zhchbin
On 2013/08/01 18:10:05, Antony Sargent wrote: > oops, good catch DHNishi - I misread the ...
7 years, 4 months ago (2013-08-02 02:02:09 UTC) #11
asargent_no_longer_on_chrome
lgtm
7 years, 4 months ago (2013-08-02 20:23:23 UTC) #12
dhnishi (use Chromium)
lgtm
7 years, 4 months ago (2013-08-02 20:32:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhchbin@gmail.com/20909002/21001
7 years, 4 months ago (2013-08-02 23:53:45 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=65830
7 years, 4 months ago (2013-08-03 00:40:16 UTC) #15
zhchbin
On 2013/08/03 00:40:16, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 4 months ago (2013-08-03 08:21:45 UTC) #16
zhchbin
On 2013/08/03 08:21:45, zhchbin wrote: > On 2013/08/03 00:40:16, I haz the power (commit-bot) wrote: ...
7 years, 4 months ago (2013-08-06 15:04:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhchbin@gmail.com/20909002/53001
7 years, 4 months ago (2013-08-07 02:56:17 UTC) #18
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=156276
7 years, 4 months ago (2013-08-07 04:04:59 UTC) #19
asargent_no_longer_on_chrome
lgtm
7 years, 4 months ago (2013-08-07 22:14:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhchbin@gmail.com/20909002/53001
7 years, 4 months ago (2013-08-08 00:20:17 UTC) #21
commit-bot: I haz the power
7 years, 4 months ago (2013-08-08 17:23:22 UTC) #22
Message was sent while issue was closed.
Change committed as 216407

Powered by Google App Engine
This is Rietveld 408576698