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

Issue 27369004: Change GetBrowserItemIndex() to GetLauncherItemIndexForType() (Closed)

Created:
7 years, 2 months ago by simonhong_
Modified:
7 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, ben+aura_chromium.org, kalyank, hyojun.im_lge.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Change GetBrowserItemIndex() to GetLauncherItemIndexForType() Makes GetBrowserItemIndex() more general function to get item index. Move this function to ./ash/launcher/launcher_model_util. R=sky@chromium.org BUG=NONE TEST=browser_tests, ash_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230456

Patch Set 1 #

Total comments: 2

Patch Set 2 : Handle all types #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : move to launcher_model_util #

Total comments: 2

Patch Set 5 : use int #

Patch Set 6 : fix clang error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -69 lines) Patch
M ash/ash.gyp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A ash/launcher/launcher_model_util.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A + ash/launcher/launcher_model_util.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M ash/shelf/shelf_util.h View 1 2 3 1 chunk +0 lines, -19 lines 0 comments Download
M ash/shelf/shelf_util.cc View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
M ash/shell.cc View 1 2 3 3 chunks +5 lines, -9 lines 0 comments Download
M ash/test/test_launcher_delegate.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 2 3 5 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
simonhong_
Dear sky, Please take a look.
7 years, 2 months ago (2013-10-16 14:04:56 UTC) #1
simonhong_
Kindly ping..
7 years, 2 months ago (2013-10-22 07:56:34 UTC) #2
sky
https://codereview.chromium.org/27369004/diff/1/ash/shelf/shelf_util.cc File ash/shelf/shelf_util.cc (right): https://codereview.chromium.org/27369004/diff/1/ash/shelf/shelf_util.cc#newcode13 ash/shelf/shelf_util.cc:13: DCHECK(type == TYPE_BROWSER_SHORTCUT || type == TYPE_APP_LIST); Why does ...
7 years, 2 months ago (2013-10-22 20:05:16 UTC) #3
simonhong_
https://codereview.chromium.org/27369004/diff/1/ash/shelf/shelf_util.cc File ash/shelf/shelf_util.cc (right): https://codereview.chromium.org/27369004/diff/1/ash/shelf/shelf_util.cc#newcode13 ash/shelf/shelf_util.cc:13: DCHECK(type == TYPE_BROWSER_SHORTCUT || type == TYPE_APP_LIST); On 2013/10/22 ...
7 years, 2 months ago (2013-10-22 20:22:35 UTC) #4
sky
First index SG. Be sure and document it. On Tue, Oct 22, 2013 at 1:22 ...
7 years, 2 months ago (2013-10-22 20:43:57 UTC) #5
simonhong_
Modified to return first index at patchset #3. Please check again.
7 years, 2 months ago (2013-10-22 21:17:50 UTC) #6
sky
https://codereview.chromium.org/27369004/diff/85001/ash/shelf/shelf_util.h File ash/shelf/shelf_util.h (right): https://codereview.chromium.org/27369004/diff/85001/ash/shelf/shelf_util.h#newcode9 ash/shelf/shelf_util.h:9: #include "ash/launcher/launcher_types.h" Sorry, one more. I think this should ...
7 years, 2 months ago (2013-10-22 23:33:51 UTC) #7
simonhong_
https://codereview.chromium.org/27369004/diff/85001/ash/shelf/shelf_util.h File ash/shelf/shelf_util.h (right): https://codereview.chromium.org/27369004/diff/85001/ash/shelf/shelf_util.h#newcode9 ash/shelf/shelf_util.h:9: #include "ash/launcher/launcher_types.h" On 2013/10/22 23:33:52, sky wrote: > Sorry, ...
7 years, 2 months ago (2013-10-23 00:13:06 UTC) #8
sky
LGTM with the following change https://codereview.chromium.org/27369004/diff/145001/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc (right): https://codereview.chromium.org/27369004/diff/145001/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc#newcode63 chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc:63: size_t browser_index = This ...
7 years, 2 months ago (2013-10-23 13:26:10 UTC) #9
simonhong_
https://codereview.chromium.org/27369004/diff/145001/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc (right): https://codereview.chromium.org/27369004/diff/145001/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc#newcode63 chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc:63: size_t browser_index = On 2013/10/23 13:26:10, sky wrote: > ...
7 years, 2 months ago (2013-10-23 14:05:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simon.hong81@gmail.com/27369004/255001
7 years, 2 months ago (2013-10-23 14:06:41 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-23 14:43:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simon.hong81@gmail.com/27369004/445001
7 years, 2 months ago (2013-10-23 14:53:55 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-10-23 17:16:27 UTC) #14
Message was sent while issue was closed.
Change committed as 230456

Powered by Google App Engine
This is Rietveld 408576698