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

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

Issue 2157153003: Call WillStartRequestForTesting in TestRenderFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just null check nav handle Created 4 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 | « no previous file | chrome/browser/chromeos/login/signin/merge_session_throttling_utils.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/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 2930 matching lines...) Expand 10 before | Expand all | Expand 10 after
2941 } 2941 }
2942 #endif 2942 #endif
2943 2943
2944 #if defined(OS_CHROMEOS) 2944 #if defined(OS_CHROMEOS)
2945 // Check if we need to add merge session throttle. This throttle will postpone 2945 // Check if we need to add merge session throttle. This throttle will postpone
2946 // loading of main frames. 2946 // loading of main frames.
2947 if (handle->IsInMainFrame()) { 2947 if (handle->IsInMainFrame()) {
2948 // Add interstitial page while merge session process (cookie reconstruction 2948 // Add interstitial page while merge session process (cookie reconstruction
2949 // from OAuth2 refresh token in ChromeOS login) is still in progress while 2949 // from OAuth2 refresh token in ChromeOS login) is still in progress while
2950 // we are attempting to load a google property. 2950 // we are attempting to load a google property.
2951 if (!merge_session_throttling_utils::AreAllSessionMergedAlready() && 2951 if (merge_session_throttling_utils::ShouldAttachNavigationThrottle() &&
2952 !merge_session_throttling_utils::AreAllSessionMergedAlready() &&
2952 handle->GetURL().SchemeIsHTTPOrHTTPS()) { 2953 handle->GetURL().SchemeIsHTTPOrHTTPS()) {
2953 throttles.push_back(MergeSessionNavigationThrottle::Create(handle)); 2954 throttles.push_back(MergeSessionNavigationThrottle::Create(handle));
2954 } 2955 }
2955 2956
2956 // TODO(djacobo): Support incognito mode by showing an aditional dialog as a 2957 // TODO(djacobo): Support incognito mode by showing an aditional dialog as a
2957 // warning that the selected app is not in incognito mode. 2958 // warning that the selected app is not in incognito mode.
2958 if (IsIntentPickerEnabled() && 2959 if (IsIntentPickerEnabled() &&
2959 !handle->GetWebContents()->GetBrowserContext()->IsOffTheRecord()) { 2960 !handle->GetWebContents()->GetBrowserContext()->IsOffTheRecord()) {
2960 arc::ArcServiceManager* arc_service_manager = 2961 arc::ArcServiceManager* arc_service_manager =
2961 arc::ArcServiceManager::Get(); 2962 arc::ArcServiceManager::Get();
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3067 if (channel <= kMaxDisableEncryptionChannel) { 3068 if (channel <= kMaxDisableEncryptionChannel) {
3068 static const char* const kWebRtcDevSwitchNames[] = { 3069 static const char* const kWebRtcDevSwitchNames[] = {
3069 switches::kDisableWebRtcEncryption, 3070 switches::kDisableWebRtcEncryption,
3070 }; 3071 };
3071 to_command_line->CopySwitchesFrom(from_command_line, 3072 to_command_line->CopySwitchesFrom(from_command_line,
3072 kWebRtcDevSwitchNames, 3073 kWebRtcDevSwitchNames,
3073 arraysize(kWebRtcDevSwitchNames)); 3074 arraysize(kWebRtcDevSwitchNames));
3074 } 3075 }
3075 } 3076 }
3076 #endif // defined(ENABLE_WEBRTC) 3077 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/signin/merge_session_throttling_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698