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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 1244033005: Enable tab discarding on Mac (behind a flag). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/common/chrome_switches.h ('k') | chrome/common/url_constants.h » ('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/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.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 9
10 namespace switches { 10 namespace switches {
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles"; 1287 const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles";
1288 1288
1289 #if defined(OS_WIN) 1289 #if defined(OS_WIN)
1290 // Fallback to XPS. By default connector uses CDD. 1290 // Fallback to XPS. By default connector uses CDD.
1291 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps"; 1291 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps";
1292 1292
1293 // Force-enables the profile shortcut manager. This is needed for tests since 1293 // Force-enables the profile shortcut manager. This is needed for tests since
1294 // they use a custom-user-data-dir which disables this. 1294 // they use a custom-user-data-dir which disables this.
1295 const char kEnableProfileShortcutManager[] = "enable-profile-shortcut-manager"; 1295 const char kEnableProfileShortcutManager[] = "enable-profile-shortcut-manager";
1296 1296
1297 // Enable tab discarding when system is under memory pressure.
1298 const char kEnableTabDiscarding[] = "enable-tab-discarding";
1299
1300 // For the DelegateExecute verb handler to launch Chrome in metro mode on 1297 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1301 // Windows 8 and higher. Used when relaunching metro Chrome. 1298 // Windows 8 and higher. Used when relaunching metro Chrome.
1302 const char kForceImmersive[] = "force-immersive"; 1299 const char kForceImmersive[] = "force-immersive";
1303 1300
1304 // Whether or not the browser should warn if the profile is on a network share. 1301 // Whether or not the browser should warn if the profile is on a network share.
1305 // This flag is only relevant for Windows currently. 1302 // This flag is only relevant for Windows currently.
1306 const char kNoNetworkProfileWarning[] = "no-network-profile-warning"; 1303 const char kNoNetworkProfileWarning[] = "no-network-profile-warning";
1307 1304
1308 // For the DelegateExecute verb handler to launch Chrome in desktop mode on 1305 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1309 // Windows 8 and higher. Used when relaunching metro Chrome. 1306 // Windows 8 and higher. Used when relaunching metro Chrome.
(...skipping 20 matching lines...) Expand all
1330 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid"; 1327 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid";
1331 1328
1332 // Waits for the given handle to be signaled before relaunching metro Chrome on 1329 // Waits for the given handle to be signaled before relaunching metro Chrome on
1333 // Windows 8 and higher. 1330 // Windows 8 and higher.
1334 const char kWaitForMutex[] = "wait-for-mutex"; 1331 const char kWaitForMutex[] = "wait-for-mutex";
1335 1332
1336 // Indicates that chrome was launched to service a search request in Windows 8. 1333 // Indicates that chrome was launched to service a search request in Windows 8.
1337 const char kWindows8Search[] = "windows8-search"; 1334 const char kWindows8Search[] = "windows8-search";
1338 #endif // defined(OS_WIN) 1335 #endif // defined(OS_WIN)
1339 1336
1337 #if defined(OS_WIN) || defined(OS_MACOSX)
1338 // Enable tab discarding when system is under memory pressure.
1339 const char kEnableTabDiscarding[] = "enable-tab-discarding";
1340 #endif // defined(OS_WIN) || defined(OS_MACOSX)
1341
1340 #if defined(ENABLE_IPC_FUZZER) 1342 #if defined(ENABLE_IPC_FUZZER)
1341 // Specifies the testcase used by the IPC fuzzer. 1343 // Specifies the testcase used by the IPC fuzzer.
1342 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; 1344 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
1343 #endif 1345 #endif
1344 1346
1345 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) 1347 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1346 // Enables support to debug printing subsystem. 1348 // Enables support to debug printing subsystem.
1347 const char kDebugPrint[] = "debug-print"; 1349 const char kDebugPrint[] = "debug-print";
1348 #endif 1350 #endif
1349 1351
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 1412
1411 // ----------------------------------------------------------------------------- 1413 // -----------------------------------------------------------------------------
1412 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1414 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1413 // 1415 //
1414 // You were going to just dump your switches here, weren't you? Instead, please 1416 // You were going to just dump your switches here, weren't you? Instead, please
1415 // put them in alphabetical order above, or in order inside the appropriate 1417 // put them in alphabetical order above, or in order inside the appropriate
1416 // ifdef at the bottom. The order should match the header. 1418 // ifdef at the bottom. The order should match the header.
1417 // ----------------------------------------------------------------------------- 1419 // -----------------------------------------------------------------------------
1418 1420
1419 } // namespace switches 1421 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698