diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 08:38:00 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 08:38:00 +0000 |
commit | 5c3fcd2df193b52dfe2ef94f81983dedc7745a7d (patch) | |
tree | 28731f52207a50b0f9a151b67ca9927e2a89c86c /apps | |
parent | 95026a03a7057704d829f25f5cd380384d86ab8c (diff) | |
download | chromium_src-5c3fcd2df193b52dfe2ef94f81983dedc7745a7d.zip chromium_src-5c3fcd2df193b52dfe2ef94f81983dedc7745a7d.tar.gz chromium_src-5c3fcd2df193b52dfe2ef94f81983dedc7745a7d.tar.bz2 |
Use separate AppBundles for querying the launcher AP and installing the binaries.
R=benwells@chromium.org
BUG=178479
Review URL: https://chromiumcodereview.appspot.com/12374051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_host/binaries_installer.cc | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/apps/app_host/binaries_installer.cc b/apps/app_host/binaries_installer.cc index ce72888..90a9b2b 100644 --- a/apps/app_host/binaries_installer.cc +++ b/apps/app_host/binaries_installer.cc @@ -177,11 +177,18 @@ HRESULT CreateAppBundle(IGoogleUpdate3* update3, IAppBundle** app_bundle) { } HRESULT SelectBinariesApValue(IGoogleUpdate3* update3, - IAppBundle* app_bundle, BSTR* ap_value) { - HRESULT hr = GetAppHostApValue(update3, app_bundle, ap_value); - if (SUCCEEDED(hr)) - return hr; + // TODO(erikwright): Uncomment this when we correctly propagate the AP value + // from the system-level binaries when quick-enabling the app host at + // user-level (http://crbug.com/178479). + // base::win::ScopedComPtr<IAppBundle> app_bundle; + // HRESULT hr = CreateAppBundle(update3, app_bundle.Receive()); + // if (FAILED(hr)) + // return hr; + + // hr = GetAppHostApValue(update3, app_bundle, ap_value); + // if (SUCCEEDED(hr)) + // return hr; // TODO(erikwright): distinguish between AppHost not installed and an // error in GetAppHostApValue. @@ -294,13 +301,13 @@ HRESULT InstallBinaries() { if (FAILED(hr)) return hr; - base::win::ScopedComPtr<IAppBundle> app_bundle; - hr = CreateAppBundle(update3, app_bundle.Receive()); + base::win::ScopedBstr ap_value; + hr = SelectBinariesApValue(update3, ap_value.Receive()); if (FAILED(hr)) return hr; - base::win::ScopedBstr ap_value; - hr = SelectBinariesApValue(update3, app_bundle, ap_value.Receive()); + base::win::ScopedComPtr<IAppBundle> app_bundle; + hr = CreateAppBundle(update3, app_bundle.Receive()); if (FAILED(hr)) return hr; |