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

Issue 7717012: ntp4: default to 18 apps per page for new installs (Closed)

Created:
9 years, 4 months ago by Evan Stade
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org, estade+watch_chromium.org
Visibility:
Public.

Description

ntp4: default to 18 apps per page for new installs BUG=none TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98351

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : improved tests #

Patch Set 6 : . #

Patch Set 7 : remove checks #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -19 lines) Patch
M chrome/browser/extensions/extension_prefs.h View 1 2 3 2 chunks +5 lines, -0 lines 2 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 5 chunks +32 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 3 4 5 5 chunks +31 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 3 chunks +11 lines, -2 lines 3 comments Download
M chrome/browser/extensions/test_extension_prefs.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 2 3 4 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Evan Stade
rbyers for app_launcher_handler, Matt for extensions
9 years, 4 months ago (2011-08-25 01:10:15 UTC) #1
Rick Byers
app_launcher_handler.cc LGTM I like that you're avoiding the ugly '-2' hack you were previously going ...
9 years, 4 months ago (2011-08-25 02:51:06 UTC) #2
Evan Stade
On 2011/08/25 02:51:06, Rick Byers wrote: > app_launcher_handler.cc LGTM > > I like that you're ...
9 years, 4 months ago (2011-08-25 04:07:52 UTC) #3
Rick Byers
On Thu, Aug 25, 2011 at 12:07 AM, <estade@chromium.org> wrote: > On 2011/08/25 02:51:06, Rick ...
9 years, 4 months ago (2011-08-25 14:38:03 UTC) #4
Evan Stade
it's for migration, yea. It's also for new chrome users, although if it were only ...
9 years, 4 months ago (2011-08-25 16:59:21 UTC) #5
Matt Perry
LGTM http://codereview.chromium.org/7717012/diff/1011/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/7717012/diff/1011/chrome/browser/extensions/extension_service.cc#newcode2234 chrome/browser/extensions/extension_service.cc:2234: // extension has an index (page or in-page), ...
9 years, 4 months ago (2011-08-25 17:59:35 UTC) #6
Mihai Parparita -not on Chrome
http://codereview.chromium.org/7717012/diff/1011/chrome/browser/extensions/extension_prefs.h File chrome/browser/extensions/extension_prefs.h (right): http://codereview.chromium.org/7717012/diff/1011/chrome/browser/extensions/extension_prefs.h#newcode104 chrome/browser/extensions/extension_prefs.h:104: // If |page_index| is -1, and the then a ...
9 years, 4 months ago (2011-08-25 18:27:08 UTC) #7
Evan Stade
http://codereview.chromium.org/7717012/diff/1011/chrome/browser/extensions/extension_prefs.h File chrome/browser/extensions/extension_prefs.h (right): http://codereview.chromium.org/7717012/diff/1011/chrome/browser/extensions/extension_prefs.h#newcode104 chrome/browser/extensions/extension_prefs.h:104: // If |page_index| is -1, and the then a ...
9 years, 4 months ago (2011-08-25 18:50:49 UTC) #8
Matt Perry
9 years, 4 months ago (2011-08-25 18:52:02 UTC) #9
http://codereview.chromium.org/7717012/diff/1011/chrome/browser/extensions/ex...
File chrome/browser/extensions/extension_service.cc (right):

http://codereview.chromium.org/7717012/diff/1011/chrome/browser/extensions/ex...
chrome/browser/extensions/extension_service.cc:2234: // extension has an index
(page or in-page), set it to -1.
On 2011/08/25 18:50:49, Evan Stade wrote:
> On 2011/08/25 17:59:35, Matt Perry wrote:
> > out of curiosity, why do we care whether a non-app has a page or in-page
> index?
> 
> because we need to be able to count the number of apps on a given page. We
could
> leave out the extensions when counting apps per page, but AFAICT
ExtensionPrefs
> doesn't have a way of knowing whether a given extension is an app. If there's
> something I'm missing I'll happily change this.

I see. Makes sense. Thanks for the explanation.

Powered by Google App Engine
This is Rietveld 408576698