New issue
Advanced search Search tips

Issue 698785 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-11-10
OS: Linux , Windows , Mac
Pri: 2
Type: Bug
Launch-M-Target: 64-Beta

Blocked on:
issue 671820
issue 794325

Blocking:
issue 630357


Show other hotlists

Hotlists containing this issue:
Harmony-Ready-For-Review


Sign in to add a comment

Harmony - update "Reset Settings?" dialogs

Project Member Reported by bettes@chromium.org, Mar 6 2017

Issue description

"Restore homepage" and other SettingsResetPromptDialog variations:
* Homepage
* Search engine
* Startup page

Mock:
https://docs.google.com/presentation/d/19cryphS69HT-8OJNv_fV-0N2I7ftMQDblle8fpO_lL0/edit?ts=58b9de3c#slide=id.g1ec868bd9b_0_14
 
Status: Available (was: Untriaged)
Note that the mock should not have a cancel button since it's redundant with a close X.
Labels: Launch-M-Target-64-Beta
NextAction: 2017-11-10

Comment 4 by pbos@chromium.org, Sep 21 2017

Owner: pbos@chromium.org
Status: Assigned (was: Available)

Comment 5 by bsep@chromium.org, Oct 19 2017

Description: Show this description

Comment 6 by bsep@chromium.org, Oct 19 2017

Summary: Harmony - update "Reset Settings?" dialogs (was: Harmony - update "Restore Default Homepage)
Project Member

Comment 7 by bugdroid1@chromium.org, Oct 19 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e8e15c2c1a409bd175e147ecfd6f703198bbc6b5

commit e8e15c2c1a409bd175e147ecfd6f703198bbc6b5
Author: Peter Boström <pbos@chromium.org>
Date: Thu Oct 19 00:59:21 2017

Rename tests for SettingsResetPromptDialog.

Expands test names like dse_ext1 for instance to something easily
readable.

Bug:  chromium:698785 
Change-Id: I96a65b377f9d882f2f9a15832bb701cfe24afe4d
Reviewed-on: https://chromium-review.googlesource.com/727364
Reviewed-by: Bret Sepulveda <bsep@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509952}
[modify] https://crrev.com/e8e15c2c1a409bd175e147ecfd6f703198bbc6b5/chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc

The NextAction date has arrived: 2017-11-10
Project Member

Comment 9 by bugdroid1@chromium.org, Dec 13 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4e2316d2ddb903885176ddca4f981cd6e0389de8

commit 4e2316d2ddb903885176ddca4f981cd6e0389de8
Author: Peter Boström <pbos@chromium.org>
Date: Wed Dec 13 03:20:41 2017

Add use_titlecase entries for SettingsResetPrompt.

Copies the strings and string descriptions verbatim but makes the
use_titlecase entry In Title Case. The Restore label is the same in both
but an additional copy is made to make sure that other languages could
title case it if appropriate.

Bug:  chromium:698785 
Change-Id: I923457767c155cdf4c147402a0ca7bc8376319fd
Reviewed-on: https://chromium-review.googlesource.com/822136
Reviewed-by: Bret Sepulveda <bsep@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523673}
[modify] https://crrev.com/4e2316d2ddb903885176ddca4f981cd6e0389de8/chrome/app/generated_resources.grd

Project Member

Comment 10 by bugdroid1@chromium.org, Dec 13 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a63b76746707a30e7c4bad9a1cdb005a14ee571e

commit a63b76746707a30e7c4bad9a1cdb005a14ee571e
Author: Peter Boström <pbos@chromium.org>
Date: Wed Dec 13 20:12:51 2017

Update SettingsResetPromptDialog for Harmony.

Incorporates a couple of changes:

* Removes close button for this modal dialog.
* Account for margins in size calculation to make the dialog 448px wide.
* Set label text context to CONTEXT_BODY_TEXT_LARGE.

This label currently does not bolden the URL under Harmony as that's
controlled by STYLE_EMPHASIZED which has no styling in Harmony. This is
tracked in chromium:794325.

Bug:  chromium:698785 
Change-Id: Iba79a5bd986bd8a2d0839ffc5145ece8647a9367
Reviewed-on: https://chromium-review.googlesource.com/823132
Commit-Queue: Peter Boström <pbos@chromium.org>
Reviewed-by: Bret Sepulveda <bsep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523858}
[modify] https://crrev.com/a63b76746707a30e7c4bad9a1cdb005a14ee571e/chrome/browser/ui/views/settings_reset_prompt_dialog.cc
[modify] https://crrev.com/a63b76746707a30e7c4bad9a1cdb005a14ee571e/chrome/browser/ui/views/settings_reset_prompt_dialog.h

Comment 11 by pbos@chromium.org, Dec 13 2017

Blockedon: 794325

Comment 12 by pbos@chromium.org, Dec 14 2017

Alan can you take a look at if there's anything left besides STYLE_EMPHASIZED highlighting the URL (blocking bug). Here are two example pages.

The strings used are the ones prefixed by IDS_SETTINGS_RESET_PROMPT_ here: https://chromium.googlesource.com/chromium/src/+/4e2316d2ddb903885176ddca4f981cd6e0389de8/chrome/app/generated_resources.grd#5940
restore_dhp.png
16.4 KB View Download

Comment 13 by pbos@chromium.org, Dec 14 2017

Cc: pbos@chromium.org
Owner: bettes@chromium.org
Cc: -pbos@chromium.org
Owner: pbos@chromium.org
LGTM!

Comment 15 by pbos@chromium.org, Dec 20 2017

Status: Fixed (was: Assigned)
Sweet!
Project Member

Comment 16 by bugdroid1@chromium.org, Dec 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/497efd752862c762cccfe472e8e47f35c7d47933

commit 497efd752862c762cccfe472e8e47f35c7d47933
Author: Peter Boström <pbos@chromium.org>
Date: Sat Dec 23 00:56:22 2017

Use bold for STYLE_EMPHASIZED in body contexts.

Bug:  chromium:698785 ,  chromium:794325 
Change-Id: Idc35cd777c5d9c5232cd728cc57df9c21101f611
Reviewed-on: https://chromium-review.googlesource.com/843017
Commit-Queue: Peter Boström <pbos@chromium.org>
Reviewed-by: Bret Sepulveda <bsep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526115}
[modify] https://crrev.com/497efd752862c762cccfe472e8e47f35c7d47933/chrome/browser/ui/views/harmony/harmony_typography_provider.cc

Status: Assigned (was: Fixed)
sorry, reopening: 
body text needs to use the Body 1 secondary. Everything lgtm

Screen Shot 2018-03-08 at 6.30.02 PM.png
83.9 KB View Download

Comment 18 by pbos@chromium.org, Mar 9 2018

Status: Fixed (was: Assigned)
Screenshot looks old (before I changed the label style). See attached screenshot.
restore-dse.png
7.0 KB View Download

Comment 19 by pbos@chromium.org, Mar 9 2018

Actually screenshot looks alright, this is body1 the old screenshot was at >100% HDPI. It got a bold update after the screenshot though per separate discussion.
Status: Assigned (was: Fixed)
Regardless of the bold, the dialog's body text should still use body 1 secondary. Example attached.
Screen Shot 2018-03-21 at 12.28.53 PM.png
40.3 KB View Download
Project Member

Comment 21 by bugdroid1@chromium.org, Mar 22 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/38b5c1844b450a43facea2da970facb4b02b1469

commit 38b5c1844b450a43facea2da970facb4b02b1469
Author: Peter Boström <pbos@chromium.org>
Date: Thu Mar 22 18:47:21 2018

Add typography style STYLE_EMPHASIZED_SECONDARY.

Uses this + STYLE_SECONDARY for the SettingsResetPromptDialog to match
the desired secondary style. Without STYLE_EMPHASIZED_SECONDARY the
emphasized text would be bold black which sticks out way too much
against the secondary gray.

Bug:  chromium:698785 
Change-Id: I3f9d1d3423ff3e990cc67f131f33ff0c7ddf55ff
Reviewed-on: https://chromium-review.googlesource.com/974065
Reviewed-by: Bret Sepulveda <bsep@chromium.org>
Reviewed-by: Trent Apted <tapted@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545172}
[modify] https://crrev.com/38b5c1844b450a43facea2da970facb4b02b1469/chrome/browser/ui/views/harmony/chrome_typography.cc
[modify] https://crrev.com/38b5c1844b450a43facea2da970facb4b02b1469/chrome/browser/ui/views/harmony/chrome_typography.h
[modify] https://crrev.com/38b5c1844b450a43facea2da970facb4b02b1469/chrome/browser/ui/views/harmony/harmony_typography_provider.cc
[modify] https://crrev.com/38b5c1844b450a43facea2da970facb4b02b1469/chrome/browser/ui/views/settings_reset_prompt_dialog.cc

Comment 22 by pbos@chromium.org, Mar 22 2018

Cc: markchang@chromium.org
Status: Fixed (was: Assigned)
Sorry I missed the "secondary" part of that. Attaching implementation screenshot which also includes a secondary emphasis style.

Another method of styling secondary emphasis would be to use primary text for the emphasis as it'll be more prominent than the secondary text surrounding it.

This dialog is very uncommon, I don't feel like a merge to M66 is warranted. Let me know if you disagree (+cc markchang@ as well).
restore-dse-secondary-style.png
7.3 KB View Download
Cc: rbasuvula@chromium.org
Labels: Needs-Feedback
@pbos: Could you please provide the sample steps of the issue which would help us to verify the issue further.

Thanks in Advance.
I don't think we need a merge.

Sign in to add a comment