diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-22 21:01:35 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-22 21:01:35 +0000 |
commit | cc829cf6a86824c7651abf68b47993b3d1629260 (patch) | |
tree | d3aada7adc47acfa17c716194833f8eb5eef81eb /chrome/browser/extensions/crx_installer.cc | |
parent | 85d52babf996c106a02b8fea6d07870351f82908 (diff) | |
download | chromium_src-cc829cf6a86824c7651abf68b47993b3d1629260.zip chromium_src-cc829cf6a86824c7651abf68b47993b3d1629260.tar.gz chromium_src-cc829cf6a86824c7651abf68b47993b3d1629260.tar.bz2 |
ntp4: make app-install-via-drag less janky
don't reposition the tiles since we always add the app at the end anyways.
Also, respect which page it's dropped on (instead of always adding to the first page).
BUG=93159
TEST=drag a most visited tile onto an apps page.
Review URL: http://codereview.chromium.org/7677032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/crx_installer.cc')
-rw-r--r-- | chrome/browser/extensions/crx_installer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc index e5a008f..126a7ce 100644 --- a/chrome/browser/extensions/crx_installer.cc +++ b/chrome/browser/extensions/crx_installer.cc @@ -120,6 +120,7 @@ CrxInstaller::CrxInstaller(base::WeakPtr<ExtensionService> frontend_weak, delete_source_(false), is_gallery_install_(false), create_app_shortcut_(false), + page_index_(0), frontend_weak_(frontend_weak), client_(client), apps_require_extension_mime_type_(false), @@ -563,7 +564,8 @@ void CrxInstaller::ReportSuccessFromUIThread() { // Tell the frontend about the installation and hand off ownership of // extension_ to it. - frontend_weak_->OnExtensionInstalled(extension_, is_gallery_install()); + frontend_weak_->OnExtensionInstalled(extension_, is_gallery_install(), + page_index_); extension_ = NULL; NotifyCrxInstallComplete(); |