How to quit all chrome processes when click X?

691 views
Skip to first unread message

Xing Xu

unread,
Jan 5, 2013, 3:13:29 AM1/5/13
to Chromium-dev
Hi, Is there any API  to do this?

PhistucK

unread,
Jan 5, 2013, 3:17:53 AM1/5/13
to open...@gmail.com, Chromium-dev
Using the Chrome menu-->Exit shuts down all of the processes of Chrome.
So I guess you should follow the code path of this menu option and call the same function for regular application exit window messages.

PhistucK


On Sat, Jan 5, 2013 at 10:13 AM, Xing Xu <open...@gmail.com> wrote:
Hi, Is there any API  to do this?

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

Xing Xu

unread,
Jan 5, 2013, 3:20:22 AM1/5/13
to PhistucK, Chromium-dev
Great! Thanks!


2013/1/5 PhistucK <phis...@gmail.com>

Peter Kasting

unread,
Jan 5, 2013, 3:20:29 AM1/5/13
to Alon Gothshmidt, Xing Xu, Chromium-dev
On Sat, Jan 5, 2013 at 12:17 AM, PhistucK <phis...@gmail.com> wrote:
Using the Chrome menu-->Exit shuts down all of the processes of Chrome.

Except long-lived background processes, e.g. the cloud print connector or apps that are set to keep running when the browser is closed.

PK

PhistucK

unread,
Jan 5, 2013, 3:32:10 AM1/5/13
to Peter Kasting, Xing Xu, Chromium-dev
I am not sure about the Cloud Print connector, but background applications do shut down (the system tray icon disappears).

PhistucK

Xing Xu

unread,
Jan 6, 2013, 1:00:04 AM1/6/13
to PhistucK, Peter Kasting, Chromium-dev
After chrome startup, there are one Tab "www.google.com" and five chrome.exe in taskmanager/Windows7.
When I click "X" button of the tabstrip, this will kill all chrome.exe processes.
So do you know the code path of how to kill all these process?


2013/1/5 PhistucK <phis...@gmail.com>

Xing Xu

unread,
Jan 6, 2013, 4:13:05 AM1/6/13
to PhistucK, Peter Kasting, Chromium-dev
More comments, This "X" was the X of Tab not "X" of window.
So when there is only one tab but many process, click "X" of this Tab will kill all process.
Do you know how is this implemented?


2013/1/6 Xing Xu <open...@gmail.com>

Peter Kasting

unread,
Jan 6, 2013, 5:44:37 PM1/6/13
to Xing Xu, PhistucK, Chromium-dev
On Sat, Jan 5, 2013 at 10:00 PM, Xing Xu <open...@gmail.com> wrote:
After chrome startup, there are one Tab "www.google.com" and five chrome.exe in taskmanager/Windows7.

Use the Chrome task manager to see what processes are what (shift-esc).
 
When I click "X" button of the tabstrip, this will kill all chrome.exe processes.
So do you know the code path of how to kill all these process?

Um, the shutdown code.  ?? I don't understand the thrust of the question.

PK 
Reply all
Reply to author
Forward
0 new messages