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

Issue 337011: NTP: Allow hiding tips and bookmark sync.... (Closed)

Created:
11 years, 2 months ago by arv (Not doing code reviews)
Modified:
9 years, 3 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, idana
Visibility:
Public.

Description

NTP: Allow hiding tips and bookmark sync. This change adds 2 new menu items to the option menu. There is pref migration code to make tips and sync visible by default. BUG=24319 TEST=Hide and show the different sections and reload to make sure it is persisted across instances of NTP.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -37 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.h View 2 3 4 5 6 6 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +27 lines, -0 lines 0 comments Download
MM chrome/browser/dom_ui/new_tab_ui_uitest.cc View 2 3 4 5 6 7 8 9 10 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/shown_sections_handler.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/shown_sections_handler.cc View 1 2 3 1 chunk +13 lines, -1 line 0 comments Download
A chrome/browser/dom_ui/shown_sections_handler_unittest.cc View 10 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/resources/new_new_tab.css View 1 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/resources/new_new_tab.html View 1 6 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/resources/new_new_tab.js View 1 5 chunks +43 lines, -25 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
arv (Not doing code reviews)
11 years, 1 month ago (2009-10-27 22:55:01 UTC) #1
Miranda Callahan
LGTM with nit. http://codereview.chromium.org/337011/diff/6007/6013 File chrome/browser/dom_ui/new_tab_ui.cc (right): http://codereview.chromium.org/337011/diff/6007/6013#newcode639 Line 639: bool NewTabUI::MaybeMigrateUserPrefs(PrefService* prefs) { Maybe ...
11 years, 1 month ago (2009-10-27 23:43:02 UTC) #2
arv (Not doing code reviews)
Tim, do you mind taking a look at this?
11 years, 1 month ago (2009-10-28 00:21:43 UTC) #3
TVL
http://codereview.chromium.org/337011/diff/5013/4002 File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/337011/diff/5013/4002#newcode4449 Line 4449: desc="Heading text for the section containing tips and ...
11 years, 1 month ago (2009-10-28 00:25:33 UTC) #4
tim (not reviewing)
LGTM with comment addressed http://codereview.chromium.org/337011/diff/3023/15 File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/337011/diff/3023/15#newcode4571 Line 4571: Boomark sync It's halloween, ...
11 years, 1 month ago (2009-10-28 00:40:26 UTC) #5
tim (not reviewing)
On Tue, Oct 27, 2009 at 5:42 PM, Erik Arvidsson <arv@chromium.org> wrote: > On Tue, ...
11 years, 1 month ago (2009-10-28 17:31:04 UTC) #6
arv (Not doing code reviews)
On Tue, Oct 27, 2009 at 17:40, <tim@chromium.org> wrote: > LGTM with comment addressed > ...
11 years, 1 month ago (2009-10-28 18:05:52 UTC) #7
arv (Not doing code reviews)
11 years, 1 month ago (2009-10-28 19:05:13 UTC) #8
On Tue, Oct 27, 2009 at 16:43,  <mirandac@chromium.org> wrote:
> LGTM with nit.
>
>
> http://codereview.chromium.org/337011/diff/6007/6013
> File chrome/browser/dom_ui/new_tab_ui.cc (right):
>
> http://codereview.chromium.org/337011/diff/6007/6013#newcode639
> Line 639: bool NewTabUI::MaybeMigrateUserPrefs(PrefService* prefs) {
> Maybe this should be called something like "UpdateUserPrefsVersion"? =C2=
=A0I
> think the "maybe..." idiom is a little confusing, as the effect of this
> method is to *always* bring user prefs up to date (the only "maybe"
> being that no state will change if they are already updated).

Good point

>
> http://codereview.chromium.org/337011
>



--=20
erik

Powered by Google App Engine
This is Rietveld 408576698