Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Issue 11367032: Remove use of GetDefaultStoragePartition from chromeos/extensions (Closed)

Created:
8 years, 1 month ago by tbarzic
Modified:
7 years, 11 months ago
Reviewers:
Matt Perry, sky, awong, zel
CC:
chromium-reviews, nkostylev+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Remove use of GetDefaultStoragePartition from chromeos/extensions This should fix the most of issues for v2 app file manager in bug 158837, but not all of them (specifically, file browser handlers different from file manager won't work on drive). This should not change the behaviour for non isolated apps. BUG=158837 TEST=None (mechanical change in chrome/browser/ui/views/select_file_dialog_extension.cc) [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176290

Patch Set 1 #

Patch Set 2 : drive #

Patch Set 3 : . #

Total comments: 3

Patch Set 4 : fix tests #

Patch Set 5 : rebase #

Patch Set 6 : . #

Patch Set 7 : rebase #

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : rebase #

Patch Set 10 : use GetSiteForExtensionId #

Total comments: 12

Patch Set 11 : addressed albert's comments #

Patch Set 12 : . #

Total comments: 1

Patch Set 13 : rebase #

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : check GetCurrentBrowser() result in ViewFiles function #

Patch Set 17 : fix LoginUtil tests #

Patch Set 18 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -393 lines) Patch
M chrome/browser/chromeos/drive/drive_task_executor.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/external_filesystem_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +125 lines, -78 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_handler_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_handler_api_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +21 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +30 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_handler_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_handler_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 26 chunks +99 lines, -111 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager_util.h View 1 2 3 4 5 6 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 13 chunks +43 lines, -24 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_browser/filehandler_create/manifest.json View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_browser/filehandler_create/test.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/filebrowser_component/intent.js View 1 2 3 4 5 6 7 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/test/data/extensions/api_test/filesystem_handler/tab.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +2 lines, -19 lines 0 comments Download
M chrome/test/data/extensions/api_test/filesystem_handler_lazy_background/tab.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/filesystem_handler_write/tab.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -15 lines 0 comments Download
D chrome/test/data/extensions/api_test/local_filesystem/background.js View 1 2 3 1 chunk +0 lines, -65 lines 0 comments Download
M chrome/test/data/extensions/api_test/local_filesystem/manifest.json View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
A + chrome/test/data/extensions/api_test/local_filesystem/test.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/local_filesystem/test.js View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/test/data/extensions/api_test/webintent_handler/background.js View 1 2 3 4 1 chunk +20 lines, -12 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
tbarzic
8 years, 1 month ago (2012-11-08 19:33:55 UTC) #1
awong
This code makes me uneasy. The "Site" URL is meant to be the result of ...
8 years, 1 month ago (2012-11-12 20:17:13 UTC) #2
tbarzic
Hey guys, can you take another look at this? I removed handcrafting of the site ...
8 years ago (2012-12-11 23:21:55 UTC) #3
awong
Hey Toni, I skimmed through this, but will need to give it a better review ...
8 years ago (2012-12-14 02:04:58 UTC) #4
tbarzic
To answer your questions: (1) Can you clarify what you mean by "top-level context"? Top-level ...
8 years ago (2012-12-14 03:55:03 UTC) #5
awong
On Thu, Dec 13, 2012 at 7:55 PM, <[email protected]> wrote: > To answer your questions: ...
8 years ago (2012-12-14 04:28:56 UTC) #6
tonibarzic
On 2012/12/14 04:28:56, awong wrote: > On Thu, Dec 13, 2012 at 7:55 PM, <mailto:[email protected]> ...
8 years ago (2012-12-14 05:20:34 UTC) #7
awong
Couple of nits, but the GetStoragePartition() calls LGTM. https://codereview.chromium.org/11367032/diff/39002/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): https://codereview.chromium.org/11367032/diff/39002/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode419 chrome/browser/chromeos/extensions/file_browser_event_router.cc:419: std::string(kFileBrowserDomain), ...
8 years ago (2012-12-14 22:56:48 UTC) #8
tbarzic
https://codereview.chromium.org/11367032/diff/39002/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): https://codereview.chromium.org/11367032/diff/39002/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode419 chrome/browser/chromeos/extensions/file_browser_event_router.cc:419: std::string(kFileBrowserDomain), On 2012/12/14 22:56:48, awong wrote: > You shouldn't ...
8 years ago (2012-12-15 04:07:30 UTC) #9
tbarzic
+ mpcomplete (I need an owner for browser/extensions/)
8 years ago (2012-12-15 04:08:40 UTC) #10
Matt Perry
lgtm https://codereview.chromium.org/11367032/diff/47001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/11367032/diff/47001/chrome/browser/extensions/extension_service.cc#newcode1192 chrome/browser/extensions/extension_service.cc:1192: // Revoke external file access for the extension ...
8 years ago (2012-12-17 18:16:45 UTC) #11
tbarzic
On 2012/12/17 18:16:45, Matt Perry wrote: > lgtm > > https://codereview.chromium.org/11367032/diff/47001/chrome/browser/extensions/extension_service.cc > File chrome/browser/extensions/extension_service.cc (right): ...
7 years, 11 months ago (2013-01-07 20:49:01 UTC) #12
zel
lgtm
7 years, 11 months ago (2013-01-10 17:04:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11367032/58003
7 years, 11 months ago (2013-01-10 20:54:01 UTC) #14
commit-bot: I haz the power
Presubmit check for 11367032-58003 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-10 20:54:15 UTC) #15
tbarzic
+sky (added TBR)
7 years, 11 months ago (2013-01-10 21:04:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11367032/58003
7 years, 11 months ago (2013-01-10 21:08:40 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests
7 years, 11 months ago (2013-01-10 23:54:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11367032/63003
7 years, 11 months ago (2013-01-11 03:02:44 UTC) #19
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/extensions/file_browser_handler_api.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-11 03:02:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11367032/85002
7 years, 11 months ago (2013-01-11 03:48:05 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
7 years, 11 months ago (2013-01-11 04:40:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11367032/85002
7 years, 11 months ago (2013-01-11 05:56:49 UTC) #23
commit-bot: I haz the power
7 years, 11 months ago (2013-01-11 09:21:25 UTC) #24
Message was sent while issue was closed.
Change committed as 176290

Powered by Google App Engine
This is Rietveld 408576698