| OLD | NEW |
| 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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 // sent to the ui_test. | 1152 // sent to the ui_test. |
| 1153 const char kRestoreLastSession[] = "restore-last-session"; | 1153 const char kRestoreLastSession[] = "restore-last-session"; |
| 1154 | 1154 |
| 1155 // Disable saving pages as HTML-only, disable saving pages as HTML Complete | 1155 // Disable saving pages as HTML-only, disable saving pages as HTML Complete |
| 1156 // (with a directory of sub-resources). Enable only saving pages as MHTML. | 1156 // (with a directory of sub-resources). Enable only saving pages as MHTML. |
| 1157 // See http://crbug.com/120416 for how to remove this switch. | 1157 // See http://crbug.com/120416 for how to remove this switch. |
| 1158 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; | 1158 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; |
| 1159 | 1159 |
| 1160 // URL prefix used by safebrowsing to fetch hash, download data and report | 1160 // URL prefix used by safebrowsing to fetch hash, download data and report |
| 1161 // malware. | 1161 // malware. |
| 1162 const char kSbURLPrefix[] = "safebrowsing-url-prefix"; | 1162 const char kSbURLPrefix[] = "safebrowsing-url-preqfix"; |
| 1163 | 1163 |
| 1164 // If present, safebrowsing only performs update when | 1164 // If present, safebrowsing only performs update when |
| 1165 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. | 1165 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. |
| 1166 // This is used for testing only. | 1166 // This is used for testing only. |
| 1167 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; | 1167 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; |
| 1168 | 1168 |
| 1169 // TODO(lzheng): Remove this flag once the feature works fine | 1169 // TODO(lzheng): Remove this flag once the feature works fine |
| 1170 // (http://crbug.com/74848). | 1170 // (http://crbug.com/74848). |
| 1171 // | 1171 // |
| 1172 // Disables safebrowsing feature that checks download url and downloads | 1172 // Disables safebrowsing feature that checks download url and downloads |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1533 // For the DelegateExecute verb handler to launch Chrome in desktop mode on | 1533 // For the DelegateExecute verb handler to launch Chrome in desktop mode on |
| 1534 // Windows 8 and higher. Used when relaunching metro Chrome. | 1534 // Windows 8 and higher. Used when relaunching metro Chrome. |
| 1535 const char kForceDesktop[] = "force-desktop"; | 1535 const char kForceDesktop[] = "force-desktop"; |
| 1536 | 1536 |
| 1537 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut. | 1537 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut. |
| 1538 const char kRelaunchShortcut[] = "relaunch-shortcut"; | 1538 const char kRelaunchShortcut[] = "relaunch-shortcut"; |
| 1539 | 1539 |
| 1540 // Waits for the given handle to be signaled before relaunching metro Chrome on | 1540 // Waits for the given handle to be signaled before relaunching metro Chrome on |
| 1541 // Windows 8 and higher. | 1541 // Windows 8 and higher. |
| 1542 const char kWaitForMutex[] = "wait-for-mutex"; | 1542 const char kWaitForMutex[] = "wait-for-mutex"; |
| 1543 |
| 1544 // Waits for the given handle to be signaled before relaunching metro Chrome on |
| 1545 // Windows 8 and higher. |
| 1546 const char kWaitForHandle[] = "wait-for-handle"; |
| 1543 #endif | 1547 #endif |
| 1544 | 1548 |
| 1545 #if defined(USE_AURA) | 1549 #if defined(USE_AURA) |
| 1546 // Use NativeTabContentsViewAura instead of the default implementation. | 1550 // Use NativeTabContentsViewAura instead of the default implementation. |
| 1547 const char kDisableTCVA[] = "disable-tcva"; | 1551 const char kDisableTCVA[] = "disable-tcva"; |
| 1548 | 1552 |
| 1549 // Opens an Ash window on startup. | 1553 // Opens an Ash window on startup. |
| 1550 extern const char kOpenAsh[] = "open-ash"; | 1554 extern const char kOpenAsh[] = "open-ash"; |
| 1551 #endif | 1555 #endif |
| 1552 | 1556 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1571 | 1575 |
| 1572 // ----------------------------------------------------------------------------- | 1576 // ----------------------------------------------------------------------------- |
| 1573 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1577 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1574 // | 1578 // |
| 1575 // You were going to just dump your switches here, weren't you? Instead, please | 1579 // You were going to just dump your switches here, weren't you? Instead, please |
| 1576 // put them in alphabetical order above, or in order inside the appropriate | 1580 // put them in alphabetical order above, or in order inside the appropriate |
| 1577 // ifdef at the bottom. The order should match the header. | 1581 // ifdef at the bottom. The order should match the header. |
| 1578 // ----------------------------------------------------------------------------- | 1582 // ----------------------------------------------------------------------------- |
| 1579 | 1583 |
| 1580 } // namespace switches | 1584 } // namespace switches |
| OLD | NEW |