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

Issue 660349: First cut at custom user style sheets. (Closed)

Created:
10 years, 9 months ago by tony
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

First cut at custom user style sheets. Enabled with the --enable-user-stylesheet flag which causes chrome to read <user-data-dir>/<profile>/User StyleSheet/Custom.css at startup and set it as the user style sheet. This version never reloads the user style sheet, I'll have to bring back FileWatcher for that. I also put the user stylesheet in a subdir because the implementation of FileWatcher will watch the parent dir (this is what the OS apis give me) and watching the profile dir will cause lots of activity. BUG=2393 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40882

Patch Set 1 #

Patch Set 2 : fix mac/win crash #

Patch Set 3 : win compile fix #

Patch Set 4 : subdir #

Total comments: 8

Patch Set 5 : review comments #

Patch Set 6 : rebase #

Patch Set 7 : .css #

Patch Set 8 : User StyleSheets #

Patch Set 9 : compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -18 lines) Patch
M chrome/browser/extensions/extension_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profile.h View 4 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.cc View 4 chunks +16 lines, -11 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -2 lines 0 comments Download
A chrome/browser/user_style_sheet_watcher.h View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/user_style_sheet_watcher.cc View 1 2 3 4 5 6 7 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/user_style_sheet_watcher_unittest.cc View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/notification_type.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webpreferences.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tony
10 years, 9 months ago (2010-03-02 02:14:06 UTC) #1
tony
ping I sat on this a while because I wanted to work out the implementation ...
10 years, 9 months ago (2010-03-05 05:32:12 UTC) #2
darin (slow to review)
http://codereview.chromium.org/660349/diff/2001/3008 File chrome/browser/user_style_sheet_watcher.cc (right): http://codereview.chromium.org/660349/diff/2001/3008#newcode46 chrome/browser/user_style_sheet_watcher.cc:46: FilePath style_sheet_dir = profile_path.AppendASCII("User StyleSheet"); does this requirement change ...
10 years, 9 months ago (2010-03-05 08:18:18 UTC) #3
tony
http://codereview.chromium.org/660349/diff/2001/3008 File chrome/browser/user_style_sheet_watcher.cc (right): http://codereview.chromium.org/660349/diff/2001/3008#newcode46 chrome/browser/user_style_sheet_watcher.cc:46: FilePath style_sheet_dir = profile_path.AppendASCII("User StyleSheet"); On 2010/03/05 08:18:18, darin ...
10 years, 9 months ago (2010-03-05 08:29:34 UTC) #4
darin (slow to review)
On Fri, Mar 5, 2010 at 12:29 AM, <tony@chromium.org> wrote: > > http://codereview.chromium.org/660349/diff/2001/3008 > File ...
10 years, 9 months ago (2010-03-05 08:42:58 UTC) #5
tony
On 2010/03/05 08:42:58, darin wrote: > Ah, OK. Would it ever be the case that ...
10 years, 9 months ago (2010-03-05 08:55:03 UTC) #6
darin (slow to review)
On Fri, Mar 5, 2010 at 12:55 AM, <tony@chromium.org> wrote: > On 2010/03/05 08:42:58, darin ...
10 years, 9 months ago (2010-03-05 08:57:25 UTC) #7
darin (slow to review)
LGTM btw
10 years, 9 months ago (2010-03-05 08:57:52 UTC) #8
tony
10 years, 9 months ago (2010-03-05 09:02:35 UTC) #9
User StyleSheets it is. :)

Thanks for the review, I'll land this on Monday.

Powered by Google App Engine
This is Rietveld 408576698