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

Side by Side Diff: chrome_frame/chrome_launcher.cc

Issue 14030003: Remove Chrome Frame's delay shutdown field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dear Greg Created 7 years, 8 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_plugin.h ('k') | chrome_frame/chrome_tab.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "policy/policy_constants.h" 11 #include "policy/policy_constants.h"
12 12
13 // Herein lies stuff selectively stolen from Chrome. We don't pull it in 13 // Herein lies stuff selectively stolen from Chrome. We don't pull it in
14 // directly because all of it results in many things we don't want being 14 // directly because all of it results in many things we don't want being
15 // included as well. 15 // included as well.
16 namespace { 16 namespace {
17 17
18 // These are the switches we will allow (along with their values) in the 18 // These are the switches we will allow (along with their values) in the
19 // safe-for-Low-Integrity version of the Chrome command line. 19 // safe-for-Low-Integrity version of the Chrome command line.
20 // Including the chrome switch files pulls in a bunch of dependencies sadly, so 20 // Including the chrome switch files pulls in a bunch of dependencies sadly, so
21 // we redefine things here: 21 // we redefine things here:
22 const wchar_t* kAllowedSwitches[] = { 22 const wchar_t* kAllowedSwitches[] = {
23 L"automation-channel", 23 L"automation-channel",
24 L"chrome-frame", 24 L"chrome-frame",
25 L"chrome-frame-shutdown-delay",
26 L"chrome-version", 25 L"chrome-version",
27 L"disable-background-mode", 26 L"disable-background-mode",
28 L"disable-popup-blocking", 27 L"disable-popup-blocking",
29 L"disable-print-preview", 28 L"disable-print-preview",
30 L"disable-renderer-accessibility", 29 L"disable-renderer-accessibility",
31 L"enable-experimental-extension-apis", 30 L"enable-experimental-extension-apis",
32 L"force-renderer-accessibility", 31 L"force-renderer-accessibility",
33 L"full-memory-crash-report", 32 L"full-memory-crash-report",
34 L"lang", 33 L"lang",
35 L"no-default-browser-check", 34 L"no-default-browser-check",
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 if (PathFileExists(cur_path)) { 258 if (PathFileExists(cur_path)) {
260 *chrome_path = cur_path; 259 *chrome_path = cur_path;
261 success = true; 260 success = true;
262 } 261 }
263 } 262 }
264 263
265 return success; 264 return success;
266 } 265 }
267 266
268 } // namespace chrome_launcher 267 } // namespace chrome_launcher
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_plugin.h ('k') | chrome_frame/chrome_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698