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

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

Issue 10985083: Upstreaming SpdyProxy-related switches, OTR logic, and histograms (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
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 <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 switches::kPlaybackMode, 839 switches::kPlaybackMode,
840 switches::kPpapiFlashArgs, 840 switches::kPpapiFlashArgs,
841 switches::kPpapiFlashInProcess, 841 switches::kPpapiFlashInProcess,
842 switches::kPpapiFlashPath, 842 switches::kPpapiFlashPath,
843 switches::kPpapiFlashVersion, 843 switches::kPpapiFlashVersion,
844 switches::kProfilingAtStart, 844 switches::kProfilingAtStart,
845 switches::kProfilingFile, 845 switches::kProfilingFile,
846 switches::kProfilingFlush, 846 switches::kProfilingFlush,
847 switches::kRecordMode, 847 switches::kRecordMode,
848 switches::kSilentDumpOnDCHECK, 848 switches::kSilentDumpOnDCHECK,
849 #if defined(OS_ANDROID)
850 switches::kSpdyProxyOrigin,
851 #endif
849 switches::kWhitelistedExtensionID, 852 switches::kWhitelistedExtensionID,
850 }; 853 };
851 854
852 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 855 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
853 arraysize(kSwitchNames)); 856 arraysize(kSwitchNames));
854 } else if (process_type == switches::kUtilityProcess) { 857 } else if (process_type == switches::kUtilityProcess) {
855 static const char* const kSwitchNames[] = { 858 static const char* const kSwitchNames[] = {
856 switches::kAllowHTTPBackgroundPage, 859 switches::kAllowHTTPBackgroundPage,
857 switches::kEnableExperimentalExtensionApis, 860 switches::kEnableExperimentalExtensionApis,
861 #if defined(OS_ANDROID)
862 switches::kSpdyProxyOrigin,
863 #endif
858 switches::kWhitelistedExtensionID, 864 switches::kWhitelistedExtensionID,
859 }; 865 };
860 866
861 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 867 command_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
862 arraysize(kSwitchNames)); 868 arraysize(kSwitchNames));
863 } else if (process_type == switches::kPluginProcess) { 869 } else if (process_type == switches::kPluginProcess) {
864 static const char* const kSwitchNames[] = { 870 static const char* const kSwitchNames[] = {
865 #if defined(OS_CHROMEOS) 871 #if defined(OS_CHROMEOS)
866 switches::kLoginProfile, 872 switches::kLoginProfile,
867 #endif 873 #endif
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 partition_id = extension->id(); 1720 partition_id = extension->id();
1715 } 1721 }
1716 1722
1717 // Enforce that IsValidStoragePartitionId() implementation stays in sync. 1723 // Enforce that IsValidStoragePartitionId() implementation stays in sync.
1718 DCHECK(IsValidStoragePartitionId(browser_context, partition_id)); 1724 DCHECK(IsValidStoragePartitionId(browser_context, partition_id));
1719 return partition_id; 1725 return partition_id;
1720 } 1726 }
1721 1727
1722 1728
1723 } // namespace chrome 1729 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698