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

Side by Side Diff: chrome_frame/chrome_launcher.cc

Issue 8070019: Don't allow Chrome to go into background mode when launched by GCF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: knitting Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/chrome_launcher_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome_frame/chrome_launcher.h" 5 #include "chrome_frame/chrome_launcher.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <shlwapi.h> 9 #include <shlwapi.h>
10 10
11 // Herein lies stuff selectively stolen from Chrome. We don't pull it in 11 // Herein lies stuff selectively stolen from Chrome. We don't pull it in
12 // directly because all of it results in many things we don't want being 12 // directly because all of it results in many things we don't want being
13 // included as well. 13 // included as well.
14 namespace { 14 namespace {
15 15
16 // These are the switches we will allow (along with their values) in the 16 // These are the switches we will allow (along with their values) in the
17 // safe-for-Low-Integrity version of the Chrome command line. 17 // safe-for-Low-Integrity version of the Chrome command line.
18 // Including the chrome switch files pulls in a bunch of dependencies sadly, so 18 // Including the chrome switch files pulls in a bunch of dependencies sadly, so
19 // we redefine things here: 19 // we redefine things here:
20 const wchar_t* kAllowedSwitches[] = { 20 const wchar_t* kAllowedSwitches[] = {
21 L"automation-channel", 21 L"automation-channel",
22 L"chrome-frame", 22 L"chrome-frame",
23 L"chrome-version", 23 L"chrome-version",
24 L"disable-background-mode",
25 L"disable-popup-blocking",
24 L"disable-renderer-accessibility", 26 L"disable-renderer-accessibility",
25 L"enable-experimental-extension-apis", 27 L"enable-experimental-extension-apis",
26 L"force-renderer-accessibility", 28 L"force-renderer-accessibility",
29 L"full-memory-crash-report",
27 L"lang", 30 L"lang",
28 L"no-default-browser-check", 31 L"no-default-browser-check",
32 L"no-first-run",
29 L"noerrdialogs", 33 L"noerrdialogs",
30 L"no-first-run",
31 L"user-data-dir", 34 L"user-data-dir",
32 L"disable-popup-blocking",
33 L"full-memory-crash-report",
34 }; 35 };
35 36
36 const wchar_t kWhitespaceChars[] = { 37 const wchar_t kWhitespaceChars[] = {
37 0x0009, /* <control-0009> to <control-000D> */ 38 0x0009, /* <control-0009> to <control-000D> */
38 0x000A, 39 0x000A,
39 0x000B, 40 0x000B,
40 0x000C, 41 0x000C,
41 0x000D, 42 0x000D,
42 0x0020, /* Space */ 43 0x0020, /* Space */
43 0x0085, /* <control-0085> */ 44 0x0085, /* <control-0085> */
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 if (PathFileExists(cur_path)) { 201 if (PathFileExists(cur_path)) {
201 *chrome_path = cur_path; 202 *chrome_path = cur_path;
202 success = true; 203 success = true;
203 } 204 }
204 } 205 }
205 206
206 return success; 207 return success;
207 } 208 }
208 209
209 } // namespace chrome_launcher 210 } // namespace chrome_launcher
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/chrome_launcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698