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

Side by Side Diff: chrome_frame/chrome_launcher.cc

Issue 657037: Add a metrics extensions API.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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/test/test_launcher/out_of_proc_test_runner.cc ('k') | no next file » | 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 "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "chrome/common/chrome_constants.h" 12 #include "chrome/common/chrome_constants.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "chrome_frame/chrome_frame_automation.h" 14 #include "chrome_frame/chrome_frame_automation.h"
15 15
16 namespace chrome_launcher { 16 namespace chrome_launcher {
17 17
18 const wchar_t kLauncherExeBaseName[] = L"chrome_launcher.exe"; 18 const wchar_t kLauncherExeBaseName[] = L"chrome_launcher.exe";
19 19
20 // These are the switches we will allow (along with their values) in the 20 // These are the switches we will allow (along with their values) in the
21 // safe-for-Low-Integrity version of the Chrome command line. 21 // safe-for-Low-Integrity version of the Chrome command line.
22 const char* kAllowedSwitches[] = { 22 const char* kAllowedSwitches[] = {
23 switches::kAutomationClientChannelID, 23 switches::kAutomationClientChannelID,
24 switches::kChromeFrame, 24 switches::kChromeFrame,
25 switches::kDisableMetrics, 25 switches::kDisableMetrics,
26 switches::kEnableRendererAccessibility, 26 switches::kEnableRendererAccessibility,
27 switches::kEnableExperimentalExtensionApis, 27 switches::kEnableExperimentalExtensionApis,
28 switches::kEnableMetricsExtensionApi,
28 switches::kNoErrorDialogs, 29 switches::kNoErrorDialogs,
29 switches::kNoFirstRun, 30 switches::kNoFirstRun,
30 switches::kUserDataDir, 31 switches::kUserDataDir,
31 }; 32 };
32 33
33 CommandLine* CreateLaunchCommandLine() { 34 CommandLine* CreateLaunchCommandLine() {
34 // TODO(joi) As optimization, could launch Chrome directly when running at 35 // TODO(joi) As optimization, could launch Chrome directly when running at
35 // medium integrity. (Requires bringing in code to read SIDs, etc.) 36 // medium integrity. (Requires bringing in code to read SIDs, etc.)
36 37
37 // The launcher EXE will be in the same directory as the Chrome Frame DLL, 38 // The launcher EXE will be in the same directory as the Chrome Frame DLL,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return ERROR_OPEN_FAILED; 117 return ERROR_OPEN_FAILED;
117 } 118 }
118 } 119 }
119 120
120 // Compile-time check to see that the type CfLaunchChromeProc is correct. 121 // Compile-time check to see that the type CfLaunchChromeProc is correct.
121 #ifndef NODEBUG 122 #ifndef NODEBUG
122 namespace { 123 namespace {
123 chrome_launcher::CfLaunchChromeProc cf_launch_chrome = CfLaunchChrome; 124 chrome_launcher::CfLaunchChromeProc cf_launch_chrome = CfLaunchChrome;
124 } // namespace 125 } // namespace
125 #endif // NODEBUG 126 #endif // NODEBUG
OLDNEW
« no previous file with comments | « chrome/test/test_launcher/out_of_proc_test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698