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

Issue 6332006: DOMUI Prefs: Improve saving of homepage pref. (Closed)

Created:
9 years, 11 months ago by stuartmorgan
Modified:
9 years, 7 months ago
Reviewers:
csilv
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

DOMUI Prefs: Improve saving of homepage pref. - Adds oninput handling to live-save the homepage pref. I had avoided this before because I didn't want to pollute metrics, but this pref doesn't actually have a metric. (Also, if one is added, we can increment it only on the onchange events.) - Does URL fixup for onchange events (not oninput, because it would make typing impossible). BUG=69901, 62851 TEST=Change the homepage to a non-canonical URL; it should be updated on blur to a full URL. On ChromeOS, power off the machine after changing the home page, but not blurring the field; it should be saved. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71835

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -6 lines) Patch
M chrome/browser/dom_ui/options/browser_options_handler.h View 3 chunks +7 lines, -0 lines 1 comment Download
M chrome/browser/dom_ui/options/browser_options_handler.cc View 4 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/resources/options/browser_options.js View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
stuartmorgan
9 years, 11 months ago (2011-01-19 18:28:08 UTC) #1
csilv
9 years, 11 months ago (2011-01-19 18:42:25 UTC) #2
LGTM

http://codereview.chromium.org/6332006/diff/1/chrome/browser/dom_ui/options/b...
File chrome/browser/dom_ui/options/browser_options_handler.h (right):

http://codereview.chromium.org/6332006/diff/1/chrome/browser/dom_ui/options/b...
chrome/browser/dom_ui/options/browser_options_handler.h:1: // Copyright (c) 2010
The Chromium Authors. All rights reserved.
bump to 2011, here and other files

Powered by Google App Engine
This is Rietveld 408576698