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

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

Issue 659233002: STASH: Epic Experimental patch for toolkit-views App List on Mac Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Fix a few things. Works@master Created 6 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/ui/BUILD.gn » ('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 <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 } 784 }
785 785
786 // Assert that if |can_be_default| is false, the code above must have found a 786 // Assert that if |can_be_default| is false, the code above must have found a
787 // non-default partition. If this fails, the caller has a serious logic 787 // non-default partition. If this fails, the caller has a serious logic
788 // error about which StoragePartition they expect to be in and it is not 788 // error about which StoragePartition they expect to be in and it is not
789 // safe to continue. 789 // safe to continue.
790 CHECK(can_be_default || !partition_domain->empty()); 790 CHECK(can_be_default || !partition_domain->empty());
791 } 791 }
792 792
793 content::WebContentsViewDelegate* 793 content::WebContentsViewDelegate*
794 ChromeContentBrowserClient::GetWebContentsViewDelegate( 794 ChromeContentBrowserClient::GetWebContentsViewDelegate(
795 content::WebContents* web_contents) { 795 content::WebContents* web_contents,
796 gfx::NativeView context) {
796 #if defined(USE_ATHENA) 797 #if defined(USE_ATHENA)
797 return athena::CreateWebContentsViewDelegate(web_contents); 798 return athena::CreateWebContentsViewDelegate(web_contents, context);
798 #else 799 #else
799 return chrome::CreateWebContentsViewDelegate(web_contents); 800 return chrome::CreateWebContentsViewDelegate(web_contents, context);
800 #endif 801 #endif
801 } 802 }
802 803
803 void ChromeContentBrowserClient::RenderProcessWillLaunch( 804 void ChromeContentBrowserClient::RenderProcessWillLaunch(
804 content::RenderProcessHost* host) { 805 content::RenderProcessHost* host) {
805 int id = host->GetID(); 806 int id = host->GetID();
806 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); 807 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
807 net::URLRequestContextGetter* context = 808 net::URLRequestContextGetter* context =
808 profile->GetRequestContextForRenderProcess(id); 809 profile->GetRequestContextForRenderProcess(id);
809 810
(...skipping 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 switches::kDisableWebRtcEncryption, 2641 switches::kDisableWebRtcEncryption,
2641 }; 2642 };
2642 to_command_line->CopySwitchesFrom(from_command_line, 2643 to_command_line->CopySwitchesFrom(from_command_line,
2643 kWebRtcDevSwitchNames, 2644 kWebRtcDevSwitchNames,
2644 arraysize(kWebRtcDevSwitchNames)); 2645 arraysize(kWebRtcDevSwitchNames));
2645 } 2646 }
2646 } 2647 }
2647 #endif // defined(ENABLE_WEBRTC) 2648 #endif // defined(ENABLE_WEBRTC)
2648 2649
2649 } // namespace chrome 2650 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698