My favorites | Sign in
Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 2012: Feature: Add a switch for starting chrome in incognito mode
44 people starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  all-bugs-test@chromium.org
Closed:  Oct 2008
Type-Bug
Pri-2
OS-All
Area-Misc
v-154.2


Sign in to add a comment
 
Reported by Arcrest, Sep 09, 2008
i think that would be easy and useful, just a --incognito switch
Comment 1 by ad...@googlechromecommunity.com, Sep 10, 2008
I think this would be good. Either a command line parameter or an option in settings 
to set the default mode of the browser to incognito.

http://googlechromecommunity.com/bb/viewtopic.php?f=8&t=36

Comment 2 by canute, Sep 11, 2008
I agree. This should apply to both regular browsing mode and app mode as well.
Comment 3 by bobbias, Sep 11, 2008
I agree too that this would be great. I only stumbled upon this because I was 
searching for a way to do that. I'm kinda sad that there isn't already a way to do 
that.
Comment 4 by kingrune, Sep 15, 2008
This would be a good feature...please add it.
Comment 5 by ghotiya.nitesh, Sep 16, 2008
Is there any workaround for this yet ??
Comment 6 by jadionne, Sep 17, 2008
I too am looking for this.  I guess I found the answer for now, but I would like to 
see this on the top of the heap to get added
Comment 7 by root66, Sep 17, 2008
I would like to see this added as well.
Comment 8 by nabilalk, Sep 18, 2008
@Jadionne: You mentioned that you have "...found an answer for now...".  What is your
temporary solution?
Comment 9 by cafebustelo, Sep 19, 2008
I agree -- I too was searching for a way to start up in incognito.
Comment 10 by jaskate.espiritu, Sep 20, 2008
that was i am thinking then. i wish they have an option to start chrome in incognito 
mode.. 
Comment 11 by nate.lapinski, Sep 20, 2008
I would also like to see this, if not at least a clear on exit option like Firefox currently allows for.
Comment 12 by vasboz, Sep 22, 2008
This would also be a very very handy feature. I do'nt know how possibly it is to have 
a right click context menu with the very first option being "run in incognito.." but 
that would be fantastic... as you wouldn't always want to run it... for example.
Comment 13 by aydinulas, Sep 22, 2008
It would do the job if there were options for that in the settings. Still, I would 
prefer a command line option like anybody else.


Comment 14 by james.humphries, Sep 25, 2008
specifically want this to allow me to open multiple gmail accounts at once, but same 
end results, the switch would be nice


Comment 15 by yarin.kaul, Sep 26, 2008
@james.humphries:

You could use the already existing --user-data-dir switch for this. Just create one 
folder per gmail account somewhere on your hard drive, then start chrome like this:

chrome.exe --user-data-dir=C:\chrome_gmail_profiles\a\ http://mail.google.com/
chrome.exe --user-data-dir=C:\chrome_gmail_profiles\b\ http://mail.google.com/
... and so on...

Additional advantage is that cookies are kept this way, so you can use auto-log-in 
for all your accounts at the same time.
Comment 16 by nabilalk, Sep 26, 2008
@yarin.kaul: Thanks for the suggestion. However I am afraid that I do not fully
understand how to implement it.  What do you mean create a folder on the HD for every
gmail account?  What does Gmail have to do with Chrome? Thanks!

-NKA
Comment 17 by yarin.kaul, Sep 26, 2008
@nabilak: My last post referred to the post of james.humphries and is not a solution 
to the problem described by this issue.

However, this is:

There is a patch in review that adds the described functionality at 
<http://codereview.chromium.org/4309>.
Comment 18 by mal.chromium, Sep 29, 2008
(No comment was entered for this change.)
Labels: -area-unknown Area-Misc
Comment 19 by venkataramana@chromium.org, Oct 13, 2008
(No comment was entered for this change.)
Status: Fixed
Labels: v-154.2
Comment 20 by venkataramana@chromium.org, Oct 13, 2008
(No comment was entered for this change.)
Status: Verified
Comment 21 by nabilalk, Oct 13, 2008
@yarin.kaul: Thanks for the follow-up. Perhaps you could offer a suggestion on how to
work the patch into? I clicked download and got:

Index: chrome/browser/browser_init.cc
===================================================================
--- chrome/browser/browser_init.cc	(revision 2596)
+++ chrome/browser/browser_init.cc	(working copy)
@@ -668,6 +668,10 @@
                                 bool process_startup, int* return_code) {
   DCHECK(profile);
 
+  // Continue with the off-the-record profile from here on if --incognito was specified
+  if (parsed_command_line.HasSwitch(switches::kIncognito))
+    profile = profile->GetOffTheRecordProfile();
+
   // Are we starting an application?
   std::wstring app_url = parsed_command_line.GetSwitchValue(switches::kApp);
   if (!app_url.empty()) {

I must admit, that I'm a complete noob with the coding.  How do I install the patch
or implement it to have the desired result? Thanks!
Comment 22 by yarin.kaul, Oct 13, 2008
Hi nabilalk,
just wait for a new release of Chrome to come out. It will contain the patch. 

If you really want to use this patch asap, you could subscribe to the Chrome Dev 
Channel. This way you get new versions of Chrome before they get released to the 
general public. See <http://dev.chromium.org/getting-involved/dev-channel>. But mind 
that this comes at the cost of lowered stability.
Comment 23 by nabilalk, Oct 13, 2008
@yarin.kaul: Ok, so I have updated to the latest dev build and was told that I could
start in incognito mode by adding the --incognito switch to my command, e.g.
chrome.exe --incognito.  That will launch in Incognito mode.

How do I add the incognito to the command and what command is this referring to? Thanks.
Comment 24 by yarin.kaul, Oct 13, 2008
nabilalk,
the patch is not yet contained in the current dev channel release. The current dev 
channel release is 0.3.154.0 afaik. You'll have to wait for at least 0.3.154.2.
Comment 25 by nabilalk, Oct 13, 2008
@yarin.kaul: I see.  Once the patch is applied, how would I start Chrome in incognito
mode?  
Comment 26 by nabilalk, Oct 13, 2008
Would it be thusly? 

"C:\Documents and Settings\USER\Local Settings\Application
Data\Google\Chrome\Application\chrome.exe --incognito"
Comment 27 by yarin.kaul, Oct 13, 2008
nabilalk,
create or copy a shortcut to Google Chrome, right-click it, choose Properties, and 
then change the target from, for example

C:\Users\yk\AppData\Local\Google\Chrome\Application\chrome.exe

to

"C:\Users\yk\AppData\Local\Google\Chrome\Application\chrome.exe" --incognito

To avoid spamming everyone that starred this issue with further comment 
notifications, please send any further questions directly to MY-GOOGLE-CODE-USER-
NAME@gmail.com instead of posting them here. Thanks.
Comment 28 by dhw@chromium.org, Jan 26, 2010
 Issue 33193  has been merged into this issue.
Sign in to add a comment

Powered by Google Project Hosting