Running Chromium without profile

2,214 views
Skip to first unread message

Eugene Ostroukhov

unread,
Feb 19, 2010, 9:00:47 PM2/19/10
to Chromium-discuss
We are writing developer tools that use Chrome as a runtime. "--user-
data-dir" command line switch is used to specify special profile but
it could be better if we could avoid profile it all - i.e. so the
Chrome start each time with a blank instance.
Sure, we could erase the profile after each user session - but if
there is some trick in Chrome to avoid profiles it would be much
easier :)

Best regards,
Eugene

Munjal Doshi

unread,
Feb 20, 2010, 2:08:13 AM2/20/10
to eostr...@gmail.com, Chromium-discuss
You can try using Incognito. But that is still not like using memory-only profile in a lot of cases. For example, if you bookmark from an Incognito window, that will be persisted to bookmarks file.

I think deleting user data dir at the start of every test, or using a different user data dir every time (for e.g. by using a GUID as its name) is easy enough and will fully guarantee you start with a clean state.

-Munjal


--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-discuss

PhistucK

unread,
Feb 20, 2010, 9:11:01 AM2/20/10
to eostr...@gmail.com, Chromium-discuss
You can take care of the bookmarks and history by using extensions (there is an experimental "history" extension API that will allow you to delete the browsing history). Also, you can control the cookies and local storage through the "Content Settings" dialog.
The cache\downloads\saved form values will be preserved (unless you choose not to save form values, but that can be changed through the "Options" dialog), though, unless you use Incognito mode.

Or, you can create a RAM drive and use it as the profile folder! All of its data will be erased upon shutdown. :)

☆PhistucK


Robert Sesek

unread,
Feb 20, 2010, 12:12:49 PM2/20/10
to Chromium-discuss, Eugene Ostroukhov
You could pass the --incognito flag, which open a new incognito window
at launch (causing no session data to be persisted to disk past the
lifetime of the window). However, users could still open non-incognito
windows and cause data to be written to a profile.

Eugene Ostroukhov

unread,
Feb 20, 2010, 5:19:50 PM2/20/10
to Chromium-discuss
To clear up my requirements.

We are developing IDE to do JS application development for Symbian
phones. So we use Chrome to run "emulator" with the JS application in
it.
Ideally we would need to:
1. Allow the users to launch several simultaneous sessions (I guess
now we will have to use separate profiles to ensure maximum isolation.
I don't like the solution with erasing profiles as I am not sure it
would be reliable (i.e. what if user pressed Ctrl+n to open a new
window and is reading GMail?).
2. We run our application as "app" - i.e. no address bar, no toolbar.
Can we block Ctrl+n?
3. Is there some way to open JS Inspector? We would really like to add
a button to "emulator" so user can click it and use Inspector
features.

Thank you for your help.

Best regards,
Eugene

Eugene Ostroukhov

unread,
Feb 20, 2010, 5:20:41 PM2/20/10
to Munjal Doshi, Chromium-discuss
Thank you for your help. I sent another message to the group o clarify
our requirements.

Best regards,
Eugene

Reply all
Reply to author
Forward
0 new messages