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

Issue 2766303003: Reland of Simplify ExtensionInstallChecker into a single-use class (Closed)

Created:
3 years, 9 months ago by dgozman
Modified:
3 years, 9 months ago
Reviewers:
Devlin, michaelpg
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Simplify ExtensionInstallChecker into a single-use class (patchset #1 id:1 of https://codereview.chromium.org/2769813004/ ) Reason for revert: The issue fixed itself without a revert. Original issue's description: > Revert of Simplify ExtensionInstallChecker into a single-use class (patchset #7 id:120001 of https://codereview.chromium.org/2751013002/ ) > > Reason for revert: > Speculative revert for ServiceWorkerTest.ServiceWorkerSuspensionOnExtensionUnload failure on the following bot: > https://uberchromegw.corp.google.com/i/chromium.win/builders/Win7%20Tests%20%28dbg%29%281%29/builds/58372 > > Original issue's description: > > Simplify ExtensionInstallChecker into a single-use class > > > > ExtensionInstallChecker does asynchronous checks, and its set of checks > > can be started more than once. This functionality isn't being used and > > makes the class more complicated. Remove > > ExtensionInstallChecker::ResetResults(). > > > > It's also unclear why the users of this class (CrxInstaller and > > UnpackedInstaller) are intentionally storing their Profile and Extension > > pointers in ExtensionInstallChecker class instead of remembering them > > locally, so update that and remove > > ExtensionInstallChecker::set_extension(). > > > > Lastly, allocate the ExtensionInstallChecker dynamically since we don't > > always use it. > > > > BUG=none > > R=rdevlin.cronin@chromium.org > > > > Review-Url: https://codereview.chromium.org/2751013002 > > Cr-Commit-Position: refs/heads/master@{#458883} > > Committed: https://chromium.googlesource.com/chromium/src/+/b24adc5bcbfde7fd67c6b23c3b0721610c77f63b > > TBR=rdevlin.cronin@chromium.org,michaelpg@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=none > > Review-Url: https://codereview.chromium.org/2769813004 > Cr-Commit-Position: refs/heads/master@{#458932} > Committed: https://chromium.googlesource.com/chromium/src/+/9cc4c29fd455f27d818bcca95934a2da2332459e TBR=rdevlin.cronin@chromium.org,michaelpg@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=none Review-Url: https://codereview.chromium.org/2766303003 Cr-Commit-Position: refs/heads/master@{#458955} Committed: https://chromium.googlesource.com/chromium/src/+/d741d25d04cbff8e7647d204a43dc4dfa76093ca

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -354 lines) Patch
M chrome/browser/extensions/crx_installer.h View 7 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 12 chunks +24 lines, -25 lines 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_checker.h View 4 chunks +17 lines, -25 lines 0 comments Download
M chrome/browser/extensions/extension_install_checker.cc View 5 chunks +25 lines, -47 lines 0 comments Download
M chrome/browser/extensions/extension_install_checker_unittest.cc View 16 chunks +90 lines, -216 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.h View 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 6 chunks +20 lines, -19 lines 0 comments Download
M extensions/test/extension_test_notification_observer.h View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/test/extension_test_notification_observer.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6 (3 generated)
dgozman
Created Reland of Simplify ExtensionInstallChecker into a single-use class
3 years, 9 months ago (2017-03-23 00:29:55 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2766303003/1
3 years, 9 months ago (2017-03-23 00:30:47 UTC) #3
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 00:36:57 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d741d25d04cbff8e7647d204a43d...

Powered by Google App Engine
This is Rietveld 408576698