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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2043933002: Move IPC fuzzer switches and helpers from chrome/common to content/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove CONTENT_EXPORT Created 4 years, 6 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/chrome_common.gypi » ('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/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 const base::CommandLine& browser_command_line = 1414 const base::CommandLine& browser_command_line =
1415 *base::CommandLine::ForCurrentProcess(); 1415 *base::CommandLine::ForCurrentProcess();
1416 1416
1417 static const char* const kCommonSwitchNames[] = { 1417 static const char* const kCommonSwitchNames[] = {
1418 switches::kUserAgent, 1418 switches::kUserAgent,
1419 switches::kUserDataDir, // Make logs go to the right file. 1419 switches::kUserDataDir, // Make logs go to the right file.
1420 }; 1420 };
1421 command_line->CopySwitchesFrom(browser_command_line, kCommonSwitchNames, 1421 command_line->CopySwitchesFrom(browser_command_line, kCommonSwitchNames,
1422 arraysize(kCommonSwitchNames)); 1422 arraysize(kCommonSwitchNames));
1423 1423
1424 #if defined(ENABLE_IPC_FUZZER)
1425 static const char* const kIpcFuzzerSwitches[] = {
1426 switches::kIpcDumpDirectory,
1427 switches::kIpcFuzzerTestcase,
1428 };
1429 command_line->CopySwitchesFrom(browser_command_line, kIpcFuzzerSwitches,
1430 arraysize(kIpcFuzzerSwitches));
1431 #endif
1432
1433 static const char* const kDinosaurEasterEggSwitches[] = { 1424 static const char* const kDinosaurEasterEggSwitches[] = {
1434 error_page::switches::kDisableDinosaurEasterEgg, 1425 error_page::switches::kDisableDinosaurEasterEgg,
1435 }; 1426 };
1436 command_line->CopySwitchesFrom(browser_command_line, 1427 command_line->CopySwitchesFrom(browser_command_line,
1437 kDinosaurEasterEggSwitches, 1428 kDinosaurEasterEggSwitches,
1438 arraysize(kDinosaurEasterEggSwitches)); 1429 arraysize(kDinosaurEasterEggSwitches));
1439 1430
1440 #if defined(OS_CHROMEOS) 1431 #if defined(OS_CHROMEOS)
1441 // On Chrome OS need to pass primary user homedir (in multi-profiles session). 1432 // On Chrome OS need to pass primary user homedir (in multi-profiles session).
1442 base::FilePath homedir; 1433 base::FilePath homedir;
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
2960 if (channel <= kMaxDisableEncryptionChannel) { 2951 if (channel <= kMaxDisableEncryptionChannel) {
2961 static const char* const kWebRtcDevSwitchNames[] = { 2952 static const char* const kWebRtcDevSwitchNames[] = {
2962 switches::kDisableWebRtcEncryption, 2953 switches::kDisableWebRtcEncryption,
2963 }; 2954 };
2964 to_command_line->CopySwitchesFrom(from_command_line, 2955 to_command_line->CopySwitchesFrom(from_command_line,
2965 kWebRtcDevSwitchNames, 2956 kWebRtcDevSwitchNames,
2966 arraysize(kWebRtcDevSwitchNames)); 2957 arraysize(kWebRtcDevSwitchNames));
2967 } 2958 }
2968 } 2959 }
2969 #endif // defined(ENABLE_WEBRTC) 2960 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698