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

Issue 140018: Make ExtensionPrefs paths relative, re-enable 2 ExtensionsService unit_tests (Closed)

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

Description

Refactored ExtensionsPrefs to store paths relative to the extensions install directory. Fix & reenabled two extensions_service unit_tests. R=erikkay BUG=14714 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19285

Patch Set 1 #

Total comments: 24

Patch Set 2 : CR changes #

Patch Set 3 : compile error #

Total comments: 8

Patch Set 4 : sync #

Patch Set 5 : merge changes, cr changes #

Patch Set 6 : fixup after move #

Total comments: 4

Patch Set 7 : re-enable tests #

Patch Set 8 : final changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -216 lines) Patch
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 5 6 7 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 3 chunks +70 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 1 2 3 4 5 6 7 36 chunks +169 lines, -64 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 chunk +2 lines, -5 lines 0 comments Download
A chrome/test/data/extensions/bad/Extensions/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/1/manifest.json View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/bad/Extensions/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Current Version View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/bad/Extensions/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/1/not_a_manifest View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/bad/Extensions/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Current Version View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/bad/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/manifest.json View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/bad/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/Current Version View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/bad/Extensions/cccccccccccccccccccccccccccccccc/git_abhors_empty_dirs View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/bad/Preferences View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/bad/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/1/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/bad/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Current Version View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/bad/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/1/not_a_manifest View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/bad/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Current Version View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/bad/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/manifest.json View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/bad/bjafgdebaacbbbecmhlhpofkepfkgcpa/Current Version View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/bad/cccccccccccccccccccccccccccccccc/git_abhors_empty_dirs View 1 chunk +0 lines, -1 line 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/js_files/script3.js View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/manifest.json View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/script1.js View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/script2.js View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/style1.css View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/style2.css View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html View 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip2.html View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/Current Version View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/manifest.json View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/Current Version View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/hpiknbiabeeppbpihjehijgoemciehgk/2/background.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/hpiknbiabeeppbpihjehijgoemciehgk/2/content_plugin.dll View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/hpiknbiabeeppbpihjehijgoemciehgk/2/extension_plugin.dll View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/hpiknbiabeeppbpihjehijgoemciehgk/2/manifest.json View 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Extensions/hpiknbiabeeppbpihjehijgoemciehgk/Current Version View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/good/Preferences View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/js_files/script3.js View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/manifest.json View 1 chunk +0 lines, -22 lines 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/script1.js View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/script2.js View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/style1.css View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/style2.css View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html View 1 chunk +0 lines, -41 lines 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip2.html View 1 chunk +0 lines, -22 lines 0 comments Download
M chrome/test/data/extensions/good/behllobkkfkfnphdnhnkndlbkcpglgmj/Current Version View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/good/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/manifest.json View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/good/bjafgdebaacbbbecmhlhpofkepfkgcpa/Current Version View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/good/hpiknbiabeeppbpihjehijgoemciehgk/2/background.html View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/good/hpiknbiabeeppbpihjehijgoemciehgk/2/content_plugin.dll View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/test/data/extensions/good/hpiknbiabeeppbpihjehijgoemciehgk/2/extension_plugin.dll View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/test/data/extensions/good/hpiknbiabeeppbpihjehijgoemciehgk/2/manifest.json View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/good/hpiknbiabeeppbpihjehijgoemciehgk/Current Version View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
rafaelw
Note that the extension_browsertests are still failing -- but for reasons unrelated to this change ...
11 years, 6 months ago (2009-06-19 22:30:05 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/140018/diff/1/2 File chrome/browser/extensions/extension_browsertest.cc (right): http://codereview.chromium.org/140018/diff/1/2#newcode84 Line 84: // EnableSingleProcess(); go ahead and remove this code ...
11 years, 6 months ago (2009-06-20 00:47:48 UTC) #2
rafaelw
http://codereview.chromium.org/140018/diff/1/2 File chrome/browser/extensions/extension_browsertest.cc (right): http://codereview.chromium.org/140018/diff/1/2#newcode84 Line 84: // EnableSingleProcess(); On 2009/06/20 00:47:48, Erik Kay wrote: ...
11 years, 6 months ago (2009-06-21 17:27:09 UTC) #3
Erik does not do reviews
http://codereview.chromium.org/140018/diff/1/3 File chrome/browser/extensions/extension_prefs.cc (right): http://codereview.chromium.org/140018/diff/1/3#newcode85 Line 85: if (!file_util::ContainsPath(parent, child)) On 2009/06/21 17:27:09, rafaelw wrote: ...
11 years, 6 months ago (2009-06-22 21:11:23 UTC) #4
rafaelw
Erik, Here are the final changes. Note that the first two extensions_service_unittests are still disabled. ...
11 years, 6 months ago (2009-06-25 01:29:25 UTC) #5
Erik does not do reviews
Two questions: (1) What's left to do to re-enable those two tests? Can you add ...
11 years, 6 months ago (2009-06-25 15:18:59 UTC) #6
Erik does not do reviews
oh, also LGTM
11 years, 6 months ago (2009-06-25 16:17:41 UTC) #7
Aaron Boodman
Raf, if you don't need to move good down a directory into Extensions, it turns ...
11 years, 6 months ago (2009-06-25 18:31:25 UTC) #8
Aaron Boodman
lgtm
11 years, 6 months ago (2009-06-25 18:33:58 UTC) #9
rafaelw
11 years, 6 months ago (2009-06-25 18:35:59 UTC) #10
All done. Also, as we talked about, removed the background page from the
offending extensions so as to be able to enable these tests: 

http://code.google.com/p/chromium/issues/detail?id=15363

http://codereview.chromium.org/140018/diff/4075/5048
File chrome/browser/extensions/extension_prefs.cc (right):

http://codereview.chromium.org/140018/diff/4075/5048#newcode7
Line 7: #include "base/file_util.h"
On 2009/06/25 15:18:59, Erik Kay wrote:
> this can now be removed

Done.

http://codereview.chromium.org/140018/diff/4075/5052
File chrome/browser/extensions/extensions_service_unittest.cc (right):

http://codereview.chromium.org/140018/diff/4075/5052#newcode520
Line 520: // Make sure the dictionary is empty.
On 2009/06/25 15:18:59, Erik Kay wrote:
> fix the comment

I just removed the check. It doesn't seem to make much sense anymore given that
successful install of an extension no longer results in an insertion into the
prefs.

Powered by Google App Engine
This is Rietveld 408576698