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

Issue 1179413010: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed)

Created:
5 years, 6 months ago by Elliot Glaysher
Modified:
5 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@sqlite-fs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mandoline filesystem: Save cookie data to the mojo:filesystem. This makes the network service use the sql vfs to proxy writing the cookies to the filesystem service. This means mojo:network_service does not directly write its data to the OS filesystem, which will allow us to sandbox it. BUG=493311 Committed: https://crrev.com/bbb9e2f6486cccadde4dc2fa077af8f694105eaa Cr-Commit-Position: refs/heads/master@{#337491}

Patch Set 1 #

Patch Set 2 : Rebase to ToT now that parent landed. #

Patch Set 3 : Maybe fix android build. #

Patch Set 4 : Wait, that could never work. #

Patch Set 5 : Fix bad merge with other patch. #

Patch Set 6 : Maybe fix windows compile. #

Patch Set 7 : Maybe this compiles on windows. #

Patch Set 8 : Another try #

Patch Set 9 : Maybe this time. #

Total comments: 5

Patch Set 10 : Use --user-data-dir on linux and windows. #

Total comments: 4

Patch Set 11 : Have mojo_runner responsible for handling the temporary directory. #

Total comments: 5

Patch Set 12 : msw nits #

Total comments: 10

Patch Set 13 : jam nits #

Patch Set 14 : Punt on the android issue. #

Patch Set 15 : Rebase to ToT #

Total comments: 1

Patch Set 16 : Add CHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -22 lines) Patch
M components/filesystem/file_system_impl.h View 2 chunks +18 lines, -3 lines 0 comments Download
M components/filesystem/file_system_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +106 lines, -2 lines 0 comments Download
M mandoline/services/core_services/core_services_application_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/runner/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/runner/child_process_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M mojo/runner/context.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
A mojo/runner/scoped_user_data_dir.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +28 lines, -0 lines 0 comments Download
A mojo/runner/scoped_user_data_dir.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +40 lines, -0 lines 0 comments Download
M mojo/runner/switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/runner/switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/services/network/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/network/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/services/network/network_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -2 lines 0 comments Download
M mojo/services/network/network_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +26 lines, -4 lines 0 comments Download
M mojo/services/network/network_service_delegate.h View 3 chunks +14 lines, -0 lines 0 comments Download
M mojo/services/network/network_service_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +95 lines, -5 lines 0 comments Download
M mojo/tools/mopy/gtest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -4 lines 0 comments Download
M sql/mojo/mojo_vfs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +17 lines, -1 line 0 comments Download
M sql/mojo/vfs_unittest.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
Elliot Glaysher
msw: testing question. jam: timing question. https://codereview.chromium.org/1179413010/diff/160001/mojo/services/network/network_context.cc File mojo/services/network/network_context.cc (right): https://codereview.chromium.org/1179413010/diff/160001/mojo/services/network/network_context.cc#newcode132 mojo/services/network/network_context.cc:132: // shell will ...
5 years, 6 months ago (2015-06-22 20:03:31 UTC) #2
msw
https://codereview.chromium.org/1179413010/diff/160001/mojo/services/network/network_context.cc File mojo/services/network/network_context.cc (right): https://codereview.chromium.org/1179413010/diff/160001/mojo/services/network/network_context.cc#newcode132 mojo/services/network/network_context.cc:132: // shell will corrupt the disk cache. On 2015/06/22 ...
5 years, 6 months ago (2015-06-22 23:02:49 UTC) #3
Elliot Glaysher
jam: requesting real review this time. https://codereview.chromium.org/1179413010/diff/160001/mojo/services/network/network_context.cc File mojo/services/network/network_context.cc (right): https://codereview.chromium.org/1179413010/diff/160001/mojo/services/network/network_context.cc#newcode132 mojo/services/network/network_context.cc:132: // shell will ...
5 years, 6 months ago (2015-06-22 23:36:39 UTC) #4
msw
https://codereview.chromium.org/1179413010/diff/160001/mojo/services/network/network_context.cc File mojo/services/network/network_context.cc (right): https://codereview.chromium.org/1179413010/diff/160001/mojo/services/network/network_context.cc#newcode132 mojo/services/network/network_context.cc:132: // shell will corrupt the disk cache. On 2015/06/22 ...
5 years, 6 months ago (2015-06-22 23:43:47 UTC) #5
Elliot Glaysher
So this creates temporary directories for each test invocation...on windows and linux. I'm not sure ...
5 years, 6 months ago (2015-06-23 23:50:26 UTC) #6
msw
https://codereview.chromium.org/1179413010/diff/180001/mojo/tools/mopy/gtest.py File mojo/tools/mopy/gtest.py (right): https://codereview.chromium.org/1179413010/diff/180001/mojo/tools/mopy/gtest.py#newcode159 mojo/tools/mopy/gtest.py:159: temp_dir = tempfile.mkdtemp() Avoid making the temp dir and ...
5 years, 6 months ago (2015-06-24 00:14:41 UTC) #7
Elliot Glaysher
https://codereview.chromium.org/1179413010/diff/180001/mojo/tools/mopy/gtest.py File mojo/tools/mopy/gtest.py (right): https://codereview.chromium.org/1179413010/diff/180001/mojo/tools/mopy/gtest.py#newcode159 mojo/tools/mopy/gtest.py:159: temp_dir = tempfile.mkdtemp() On 2015/06/24 00:14:40, msw wrote: > ...
5 years, 6 months ago (2015-06-24 22:22:41 UTC) #8
msw
lgtm with nits, please try apptests locally before landing. https://codereview.chromium.org/1179413010/diff/200001/mojo/runner/scoped_user_data_dir.cc File mojo/runner/scoped_user_data_dir.cc (right): https://codereview.chromium.org/1179413010/diff/200001/mojo/runner/scoped_user_data_dir.cc#newcode28 mojo/runner/scoped_user_data_dir.cc:28: ...
5 years, 6 months ago (2015-06-24 23:00:35 UTC) #9
Elliot Glaysher
ping jam for mojo review
5 years, 6 months ago (2015-06-24 23:10:30 UTC) #10
jam
https://codereview.chromium.org/1179413010/diff/220001/mojo/runner/desktop/main.cc File mojo/runner/desktop/main.cc (right): https://codereview.chromium.org/1179413010/diff/220001/mojo/runner/desktop/main.cc#newcode19 mojo/runner/desktop/main.cc:19: mojo::runner::ScopedUserDataDir scoped_user_data_dir; a few issues of putting it here: ...
5 years, 6 months ago (2015-06-25 15:28:24 UTC) #11
Elliot Glaysher
Redirecting jam->sky since jam is gone for a while now. I'm basically spinning my wheels ...
5 years, 6 months ago (2015-06-25 22:46:48 UTC) #13
sky
Rubber stamp LGTM. John can re-review when he gets back.
5 years, 6 months ago (2015-06-25 23:28:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179413010/260001
5 years, 6 months ago (2015-06-26 00:33:59 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/74224)
5 years, 6 months ago (2015-06-26 00:42:23 UTC) #19
Elliot Glaysher
+shess for owners stamp on //sql/
5 years, 5 months ago (2015-07-06 20:35:24 UTC) #21
Scott Hess - ex-Googler
LGTM, minor suggestion. https://codereview.chromium.org/1179413010/diff/280001/sql/mojo/mojo_vfs.cc File sql/mojo/mojo_vfs.cc (right): https://codereview.chromium.org/1179413010/diff/280001/sql/mojo/mojo_vfs.cc#newcode255 sql/mojo/mojo_vfs.cc:255: mojo_name = base::StringPrintf("Temp_%d.db", temp_number++); AFAICT this ...
5 years, 5 months ago (2015-07-06 20:48:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179413010/300001
5 years, 5 months ago (2015-07-06 21:05:39 UTC) #25
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 5 months ago (2015-07-06 22:15:32 UTC) #26
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/bbb9e2f6486cccadde4dc2fa077af8f694105eaa Cr-Commit-Position: refs/heads/master@{#337491}
5 years, 5 months ago (2015-07-06 22:16:24 UTC) #27
Fady Samuel
5 years, 5 months ago (2015-07-07 14:49:34 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #16 id:300001) has been created in
https://codereview.chromium.org/1225673006/ by fsamuel@chromium.org.

The reason for reverting is: I'm seeing the following crash when closing the
Mandoline window on Linux:

[0707/104753:FATAL:sqlite_persistent_cookie_store.cc(1135)] Check failed: false.
Could not add a cookie to the DB.
#0 0x00000046aef1 __interceptor_backtrace
#1 0x7fec4b87954e base::debug::StackTrace::StackTrace()
#2 0x7fec4b479a1d logging::LogMessage::~LogMessage()
#3 0x7fec53f03c23 net::SQLitePersistentCookieStore::Backend::Commit()
#4 0x7fec53f04f38
net::SQLitePersistentCookieStore::Backend::InternalBackgroundClose()
#5 0x7fec53f1902b base::internal::RunnableAdapter<>::Run()

Reverting this patch resolves the issue..

Powered by Google App Engine
This is Rietveld 408576698