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 = [
"+apps",
"+ash",
"+athena/content/public",
"+chrome/app",
"+chrome/grit", # For generated headers
"+chrome/installer",
......
......@@ -191,6 +191,7 @@
#endif
#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"
#elif defined(USE_ASH)
#include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h"
......@@ -793,7 +794,11 @@ void ChromeContentBrowserClient::GetStoragePartitionConfigForSite(
content::WebContentsViewDelegate*
ChromeContentBrowserClient::GetWebContentsViewDelegate(
content::WebContents* web_contents) {
#if defined(USE_ATHENA)
return athena::CreateWebContentsViewDelegate(web_contents);
#else
return chrome::CreateWebContentsViewDelegate(web_contents);
#endif
}
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