summaryrefslogtreecommitdiffstats
path: root/ash/launcher/launcher_model.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-22 23:10:19 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-22 23:10:19 +0000
commit4a56d244f001527dbfcd3d8702c285bfd2798b97 (patch)
tree13a4b0cdfcbab9c9b2e3dbfa946433d380730e72 /ash/launcher/launcher_model.cc
parente98082aab932cf17fa022d3129230b0fcf938c99 (diff)
downloadchromium_src-4a56d244f001527dbfcd3d8702c285bfd2798b97.zip
chromium_src-4a56d244f001527dbfcd3d8702c285bfd2798b97.tar.gz
chromium_src-4a56d244f001527dbfcd3d8702c285bfd2798b97.tar.bz2
Adds ability to pin apps to the launcher.
BUG=101506 TEST=none R=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9429053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher/launcher_model.cc')
-rw-r--r--ash/launcher/launcher_model.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/launcher/launcher_model.cc b/ash/launcher/launcher_model.cc
index 53d9835..bf024de 100644
--- a/ash/launcher/launcher_model.cc
+++ b/ash/launcher/launcher_model.cc
@@ -30,9 +30,10 @@ void LauncherModel::RemoveItemAt(int index) {
// The app list and browser shortcut can't be removed.
DCHECK(items_[index].type != TYPE_APP_LIST &&
items_[index].type != TYPE_BROWSER_SHORTCUT);
+ LauncherID id = items_[index].id;
items_.erase(items_.begin() + index);
FOR_EACH_OBSERVER(LauncherModelObserver, observers_,
- LauncherItemRemoved(index));
+ LauncherItemRemoved(index, id));
}
void LauncherModel::Move(int index, int target_index) {