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/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 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2935 } | 2935 } |
2936 #endif | 2936 #endif |
2937 | 2937 |
2938 #if defined(OS_CHROMEOS) | 2938 #if defined(OS_CHROMEOS) |
2939 // Check if we need to add merge session throttle. This throttle will postpone | 2939 // Check if we need to add merge session throttle. This throttle will postpone |
2940 // loading of main frames. | 2940 // loading of main frames. |
2941 if (handle->IsInMainFrame()) { | 2941 if (handle->IsInMainFrame()) { |
2942 // Add interstitial page while merge session process (cookie reconstruction | 2942 // Add interstitial page while merge session process (cookie reconstruction |
2943 // from OAuth2 refresh token in ChromeOS login) is still in progress while | 2943 // from OAuth2 refresh token in ChromeOS login) is still in progress while |
2944 // we are attempting to load a google property. | 2944 // we are attempting to load a google property. |
2945 if (!merge_session_throttling_utils::AreAllSessionMergedAlready() && | 2945 if (merge_session_throttling_utils::ShouldAttachNavigationThrottle() && |
| 2946 !merge_session_throttling_utils::AreAllSessionMergedAlready() && |
2946 handle->GetURL().SchemeIsHTTPOrHTTPS()) { | 2947 handle->GetURL().SchemeIsHTTPOrHTTPS()) { |
2947 throttles.push_back(MergeSessionNavigationThrottle::Create(handle)); | 2948 throttles.push_back(MergeSessionNavigationThrottle::Create(handle)); |
2948 } | 2949 } |
2949 | 2950 |
2950 // TODO(djacobo): Support incognito mode by showing an aditional dialog as a | 2951 // TODO(djacobo): Support incognito mode by showing an aditional dialog as a |
2951 // warning that the selected app is not in incognito mode. | 2952 // warning that the selected app is not in incognito mode. |
2952 if (IsIntentPickerEnabled() && | 2953 if (IsIntentPickerEnabled() && |
2953 !handle->GetWebContents()->GetBrowserContext()->IsOffTheRecord()) { | 2954 !handle->GetWebContents()->GetBrowserContext()->IsOffTheRecord()) { |
2954 arc::ArcServiceManager* arc_service_manager = | 2955 arc::ArcServiceManager* arc_service_manager = |
2955 arc::ArcServiceManager::Get(); | 2956 arc::ArcServiceManager::Get(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3047 if (channel <= kMaxDisableEncryptionChannel) { | 3048 if (channel <= kMaxDisableEncryptionChannel) { |
3048 static const char* const kWebRtcDevSwitchNames[] = { | 3049 static const char* const kWebRtcDevSwitchNames[] = { |
3049 switches::kDisableWebRtcEncryption, | 3050 switches::kDisableWebRtcEncryption, |
3050 }; | 3051 }; |
3051 to_command_line->CopySwitchesFrom(from_command_line, | 3052 to_command_line->CopySwitchesFrom(from_command_line, |
3052 kWebRtcDevSwitchNames, | 3053 kWebRtcDevSwitchNames, |
3053 arraysize(kWebRtcDevSwitchNames)); | 3054 arraysize(kWebRtcDevSwitchNames)); |
3054 } | 3055 } |
3055 } | 3056 } |
3056 #endif // defined(ENABLE_WEBRTC) | 3057 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |