Commit 295d0f47 authored by pkotwicz's avatar pkotwicz Committed by Commit bot

Use athena version of content::WebContentsViewDelegate when USE_ATHENA is defned

BUG=414781, 416859
TEST=Manual, see bug

Review URL: https://codereview.chromium.org/598603003

Cr-Commit-Position: refs/heads/master@{#296336}
parent 25e2bc0a
include_rules = [ include_rules = [
"+apps", "+apps",
"+ash", "+ash",
"+athena/content/public",
"+chrome/app", "+chrome/app",
"+chrome/grit", # For generated headers "+chrome/grit", # For generated headers
"+chrome/installer", "+chrome/installer",
......
...@@ -191,6 +191,7 @@ ...@@ -191,6 +191,7 @@
#endif #endif
#if defined(USE_ATHENA) #if defined(USE_ATHENA)
#include "athena/content/public/web_contents_view_delegate_creator.h"
#include "chrome/browser/ui/views/athena/chrome_browser_main_extra_parts_athena.h" #include "chrome/browser/ui/views/athena/chrome_browser_main_extra_parts_athena.h"
#elif defined(USE_ASH) #elif defined(USE_ASH)
#include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h" #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h"
...@@ -793,7 +794,11 @@ void ChromeContentBrowserClient::GetStoragePartitionConfigForSite( ...@@ -793,7 +794,11 @@ void ChromeContentBrowserClient::GetStoragePartitionConfigForSite(
content::WebContentsViewDelegate* content::WebContentsViewDelegate*
ChromeContentBrowserClient::GetWebContentsViewDelegate( ChromeContentBrowserClient::GetWebContentsViewDelegate(
content::WebContents* web_contents) { content::WebContents* web_contents) {
#if defined(USE_ATHENA)
return athena::CreateWebContentsViewDelegate(web_contents);
#else
return chrome::CreateWebContentsViewDelegate(web_contents); return chrome::CreateWebContentsViewDelegate(web_contents);
#endif
} }
void ChromeContentBrowserClient::RenderProcessWillLaunch( void ChromeContentBrowserClient::RenderProcessWillLaunch(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment