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

Side by Side 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 unified diff | Download patch
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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" 271 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h"
272 #endif 272 #endif
273 273
274 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 274 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
275 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h" 275 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h"
276 #endif 276 #endif
277 277
278 #if defined(USE_AURA) 278 #if defined(USE_AURA)
279 #include "services/service_manager/runner/common/client_util.h" 279 #include "services/service_manager/runner/common/client_util.h"
280 #include "services/ui/public/cpp/gpu/gpu.h" 280 #include "services/ui/public/cpp/gpu/gpu.h"
281 #include "ui/views/mus/mus_client.h" 281 #include "ui/views/mus/window_manager_connection.h"
282 #endif 282 #endif
283 283
284 #if defined(USE_ASH) 284 #if defined(USE_ASH)
285 #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h" 285 #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h"
286 #endif 286 #endif
287 287
288 #if defined(USE_X11) 288 #if defined(USE_X11)
289 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" 289 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h"
290 #endif 290 #endif
291 291
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 #endif 907 #endif
908 908
909 chrome::AddProfilesExtraParts(main_parts); 909 chrome::AddProfilesExtraParts(main_parts);
910 910
911 // Construct additional browser parts. Stages are called in the order in 911 // Construct additional browser parts. Stages are called in the order in
912 // which they are added. 912 // which they are added.
913 #if defined(TOOLKIT_VIEWS) 913 #if defined(TOOLKIT_VIEWS)
914 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(USE_OZONE) 914 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(USE_OZONE)
915 main_parts->AddParts(new ChromeBrowserMainExtraPartsViewsLinux()); 915 main_parts->AddParts(new ChromeBrowserMainExtraPartsViewsLinux());
916 #else 916 #else
917 ChromeBrowserMainExtraPartsViews* extra_parts_views = 917 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews());
918 new ChromeBrowserMainExtraPartsViews;
919 main_parts->AddParts(extra_parts_views);
920 #if defined(USE_ASH)
921 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh(extra_parts_views));
922 #endif
923 #endif 918 #endif
924 #endif 919 #endif
925 920
921 // TODO(oshima): Athena on chrome currently requires USE_ASH to build.
922 // We should reduce the dependency as much as possible.
923 #if defined(USE_ASH)
924 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh());
925 #endif
926
926 #if defined(USE_X11) 927 #if defined(USE_X11)
927 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11()); 928 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11());
928 #endif 929 #endif
929 930
930 #if defined(ENABLE_WAYLAND_SERVER) 931 #if defined(ENABLE_WAYLAND_SERVER)
931 main_parts->AddParts(new ChromeBrowserMainExtraPartsExo()); 932 main_parts->AddParts(new ChromeBrowserMainExtraPartsExo());
932 #endif 933 #endif
933 934
934 chrome::AddMetricsExtraParts(main_parts); 935 chrome::AddMetricsExtraParts(main_parts);
935 936
(...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after
2729 } 2730 }
2730 ++iter; 2731 ++iter;
2731 } 2732 }
2732 #endif 2733 #endif
2733 return NULL; 2734 return NULL;
2734 } 2735 }
2735 2736
2736 gpu::GpuChannelEstablishFactory* 2737 gpu::GpuChannelEstablishFactory*
2737 ChromeContentBrowserClient::GetGpuChannelEstablishFactory() { 2738 ChromeContentBrowserClient::GetGpuChannelEstablishFactory() {
2738 #if defined(USE_AURA) 2739 #if defined(USE_AURA)
2739 if (views::MusClient::Exists()) 2740 if (views::WindowManagerConnection::Exists())
2740 return views::MusClient::Get()->gpu(); 2741 return views::WindowManagerConnection::Get()->gpu();
2741 #endif 2742 #endif
2742 return nullptr; 2743 return nullptr;
2743 } 2744 }
2744 2745
2745 bool ChromeContentBrowserClient::AllowPepperSocketAPI( 2746 bool ChromeContentBrowserClient::AllowPepperSocketAPI(
2746 content::BrowserContext* browser_context, 2747 content::BrowserContext* browser_context,
2747 const GURL& url, 2748 const GURL& url,
2748 bool private_api, 2749 bool private_api,
2749 const content::SocketPermissionRequest* params) { 2750 const content::SocketPermissionRequest* params) {
2750 #if BUILDFLAG(ENABLE_PLUGINS) && BUILDFLAG(ENABLE_EXTENSIONS) 2751 #if BUILDFLAG(ENABLE_PLUGINS) && BUILDFLAG(ENABLE_EXTENSIONS)
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
3364 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization:: 3365 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization::
3365 BrowserWorkerPoolIndexForTraits); 3366 BrowserWorkerPoolIndexForTraits);
3366 } 3367 }
3367 3368
3368 void ChromeContentBrowserClient:: 3369 void ChromeContentBrowserClient::
3369 PerformExperimentalTaskSchedulerRedirections() { 3370 PerformExperimentalTaskSchedulerRedirections() {
3370 task_scheduler_util::variations:: 3371 task_scheduler_util::variations::
3371 MaybePerformBrowserTaskSchedulerRedirection(); 3372 MaybePerformBrowserTaskSchedulerRedirection();
3372 } 3373 }
3373 3374
3374 // static 3375 //static
3375 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3376 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3376 const storage::QuotaSettings* settings) { 3377 const storage::QuotaSettings* settings) {
3377 g_default_quota_settings = settings; 3378 g_default_quota_settings = settings;
3378 } 3379 }
OLDNEW
« 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