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

Issue 10388252: Refactoring ExtenionInstallUI to abstract the Browser references. (Closed)

Created:
8 years, 7 months ago by Jay Civelli
Modified:
8 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, kkania, Aaron Boodman, rginda+watch_chromium.org, robertshield, rdsmith+dwatch_chromium.org, estade+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Refactoring ExtensionInstallUI to abstract the Browser references. As part of the effort to build unit-tests on Android, this CL abstracts out references to the Browser object from the extension install ui code. For this, ExtensionInstallUI has been renamed ExtensionInstallPrompt and the UI specific bits have been moved to a new class that took the old name ExtensionInstallUI. BUG=None TEST=You should be able to install an extension. All browser tests/unit tests should pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141261

Patch Set 1 #

Patch Set 2 : Minor clean-ups #

Total comments: 29

Patch Set 3 : Addressed Yoyo's comments. #

Total comments: 11

Patch Set 4 : Addressed Yoyo's comments #

Patch Set 5 : Moving OnInstallSucess/Failure back to ExtensionInstallPrompt #

Patch Set 6 : Synced #

Patch Set 7 : Synced again #

Patch Set 8 : Synced #

Total comments: 1

Patch Set 9 : Synced + mac fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+656 lines, -1298 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager_util.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 7 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/download/download_crx_util.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/download/download_crx_util.cc View 1 2 3 4 5 4 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_api.h View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.h View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/bundle_installer.h View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/bundle_installer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 3 6 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 2 3 4 5 7 chunks +21 lines, -18 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_install_dialog.h View 1 2 3 4 5 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_install_dialog.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/extensions/extension_install_prompt.h View 1 2 3 4 5 6 7 8 chunks +13 lines, -55 lines 0 comments Download
A + chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 4 5 6 7 20 chunks +52 lines, -207 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.h View 1 2 3 4 5 6 7 1 chunk +16 lines, -267 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.cc View 1 2 3 4 5 1 chunk +1 line, -555 lines 0 comments Download
A chrome/browser/extensions/extension_install_ui_android.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_install_ui_android.cc View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_install_ui_default.h View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_install_ui_default.cc View 1 2 3 4 5 6 7 1 chunk +214 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.h View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_navigation_observer.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_navigation_observer.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.h View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.cc View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/infobars/infobars_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.h View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_unittest.mm View 1 2 3 7 chunks +23 lines, -21 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc View 1 2 3 4 5 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/extensions/install_extension_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.h View 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Jay Civelli
Hi Yoyo, Based on your previous suggestions in http://codereview.chromium.org/10388008/ I decided to start a new ...
8 years, 7 months ago (2012-05-23 17:38:43 UTC) #1
Yoyo Zhou
This approach looks pretty good. I left some draft comments as well. I'll let Aaron ...
8 years, 7 months ago (2012-05-23 23:17:49 UTC) #2
Aaron Boodman
http://codereview.chromium.org/10388252/diff/2001/chrome/browser/extensions/extension_install_prompt.cc File chrome/browser/extensions/extension_install_prompt.cc (right): http://codereview.chromium.org/10388252/diff/2001/chrome/browser/extensions/extension_install_prompt.cc#newcode336 chrome/browser/extensions/extension_install_prompt.cc:336: SetIcon(icon); On 2012/05/23 23:17:49, Yoyo Zhou wrote: > It ...
8 years, 6 months ago (2012-05-30 00:27:24 UTC) #3
Jay Civelli
Sorry for the delay, got caught up with something else. Addressed all your comments. Thanks! ...
8 years, 6 months ago (2012-05-30 20:20:34 UTC) #4
Yoyo Zhou
Mostly LGTM. There are a few things that I'm not sure are going to work ...
8 years, 6 months ago (2012-06-01 21:07:43 UTC) #5
Jay Civelli
http://codereview.chromium.org/10388252/diff/15001/chrome/browser/extensions/extension_install_prompt.h File chrome/browser/extensions/extension_install_prompt.h (right): http://codereview.chromium.org/10388252/diff/15001/chrome/browser/extensions/extension_install_prompt.h#newcode165 chrome/browser/extensions/extension_install_prompt.h:165: void SetSkipPostInstallUI(bool skip_ui); On 2012/06/01 21:07:43, Yoyo Zhou wrote: ...
8 years, 6 months ago (2012-06-04 17:15:30 UTC) #6
Yoyo Zhou
LGTM. The tryjob results look inflamed, so please make sure that tests still pass. http://codereview.chromium.org/10388252/diff/15001/chrome/browser/extensions/extension_install_ui.h ...
8 years, 6 months ago (2012-06-04 21:02:01 UTC) #7
Jay Civelli
Scott, could you look at the chrome/browser/ui/ files? Randy, could you look at the download ...
8 years, 6 months ago (2012-06-08 01:25:58 UTC) #8
sky
Fix this and chrome/browser/ui LGTM http://codereview.chromium.org/10388252/diff/51048/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm File chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm (right): http://codereview.chromium.org/10388252/diff/51048/chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm#newcode324 chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm:324: Browser* browser = BrowserList::FindLastActiveWithProfile(profile); ...
8 years, 6 months ago (2012-06-08 02:52:02 UTC) #9
Randy Smith (Not in Mondays)
chrome/browser/download LGTM.
8 years, 6 months ago (2012-06-08 16:38:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/10388252/58004
8 years, 6 months ago (2012-06-08 17:38:55 UTC) #11
commit-bot: I haz the power
8 years, 6 months ago (2012-06-08 19:49:37 UTC) #12
Change committed as 141261

Powered by Google App Engine
This is Rietveld 408576698