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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2577963006: Revert of Converts chrome to aura-mus (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/chrome_main.cc ('k') | chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index a3fbed657f7eaff10c7612c2c40f4f684d304aa3..66f12903b04a0ca3999d135d919853b2882f03a1 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -278,7 +278,7 @@
#if defined(USE_AURA)
#include "services/service_manager/runner/common/client_util.h"
#include "services/ui/public/cpp/gpu/gpu.h"
-#include "ui/views/mus/mus_client.h"
+#include "ui/views/mus/window_manager_connection.h"
#endif
#if defined(USE_ASH)
@@ -914,13 +914,14 @@
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(USE_OZONE)
main_parts->AddParts(new ChromeBrowserMainExtraPartsViewsLinux());
#else
- ChromeBrowserMainExtraPartsViews* extra_parts_views =
- new ChromeBrowserMainExtraPartsViews;
- main_parts->AddParts(extra_parts_views);
+ main_parts->AddParts(new ChromeBrowserMainExtraPartsViews());
+#endif
+#endif
+
+// TODO(oshima): Athena on chrome currently requires USE_ASH to build.
+// We should reduce the dependency as much as possible.
#if defined(USE_ASH)
- main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh(extra_parts_views));
-#endif
-#endif
+ main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh());
#endif
#if defined(USE_X11)
@@ -2736,8 +2737,8 @@
gpu::GpuChannelEstablishFactory*
ChromeContentBrowserClient::GetGpuChannelEstablishFactory() {
#if defined(USE_AURA)
- if (views::MusClient::Exists())
- return views::MusClient::Get()->gpu();
+ if (views::WindowManagerConnection::Exists())
+ return views::WindowManagerConnection::Get()->gpu();
#endif
return nullptr;
}
@@ -3371,7 +3372,7 @@
MaybePerformBrowserTaskSchedulerRedirection();
}
-// static
+//static
void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
const storage::QuotaSettings* settings) {
g_default_quota_settings = settings;
« no previous file with comments | « chrome/app/chrome_main.cc ('k') | chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698