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

Issue 18198: Add user script support to extensions. (Closed)

Created:
11 years, 11 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add user script support to extensions. This is implemented mostly by relying on the existing user script code. But since extension user scripts are declared, not discovered in a directory, I had to add support for adding 'lone' user scripts to UserScriptMaster. This led to a bit of refactoring. Note that this CL relies on: http://codereview.chromium.org/18352

Patch Set 1 #

Total comments: 1

Patch Set 2 : Commentary #

Total comments: 10

Patch Set 3 : Review feedback #

Patch Set 4 : patchypatch #

Patch Set 5 : more cleanup #

Patch Set 6 : Compile fixes for linux and mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -97 lines) Patch
M base/directory_watcher_unittest.cc View 3 4 2 chunks +2 lines, -17 lines 0 comments Download
M base/directory_watcher_win.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/browser_init.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 3 4 3 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/extensions/user_script_master.h View 1 4 5 7 chunks +36 lines, -16 lines 0 comments Download
M chrome/browser/extensions/user_script_master.cc View 1 2 3 4 5 6 chunks +73 lines, -47 lines 0 comments Download
M chrome/browser/extensions/user_script_master_unittest.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profile.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 5 4 chunks +33 lines, -9 lines 0 comments Download
M chrome/test/testing_profile.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Aaron Boodman
http://codereview.chromium.org/18198/diff/1/2 File base/directory_watcher_win.cc (right): http://codereview.chromium.org/18198/diff/1/2#newcode48 Line 48: TRUE, // Watch subtree. Note: no other code ...
11 years, 11 months ago (2009-01-20 03:14:28 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/18198/diff/22/201 File base/directory_watcher_win.cc (right): http://codereview.chromium.org/18198/diff/22/201#newcode48 Line 48: TRUE, // Watch subtree. I bet this is ...
11 years, 11 months ago (2009-01-20 23:57:47 UTC) #2
Aaron Boodman
http://codereview.chromium.org/18198/diff/22/201 File base/directory_watcher_win.cc (right): http://codereview.chromium.org/18198/diff/22/201#newcode48 Line 48: TRUE, // Watch subtree. On 2009/01/20 23:57:47, Erik ...
11 years, 11 months ago (2009-01-21 08:05:04 UTC) #3
M-A Ruel
http://codereview.chromium.org/18198/diff/22/201 File base/directory_watcher_win.cc (right): http://codereview.chromium.org/18198/diff/22/201#newcode48 Line 48: TRUE, // Watch subtree. May I add that ...
11 years, 11 months ago (2009-01-21 17:54:44 UTC) #4
Erik does not do reviews
LGTM http://codereview.chromium.org/18198/diff/22/203 File chrome/browser/extensions/extensions_service.cc (right): http://codereview.chromium.org/18198/diff/22/203#newcode69 Line 69: // Tell UserScriptMaster to also watch the ...
11 years, 11 months ago (2009-01-21 20:24:36 UTC) #5
Evan Martin
11 years, 11 months ago (2009-01-25 15:57:17 UTC) #6
BTW, the reason I originally passed FALSE in for that subdirectory watcher is
that it's more work to implement the recursive watch on Linux.  It's not a
horrifying amount of work (basically you need to watch each subdirectory
manually, and create the watches in an order such that if someone adds/removes a
subdirectory while you're in the middle of your recursive scan you do the right
thing), but it wasn't needed at the time.

We should figure out what the correct thing for users to do is and then make
that work on XP/Vista.  I am fine with that figuring out to not happen here.  :)

Powered by Google App Engine
This is Rietveld 408576698