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

Unified Diff: chrome/browser/ui/app_list/app_list_service_mac.mm

Issue 1861233003: Prepare for building with enable_app_list=0 on Desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drop patchset dependency, rebase to master Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/app_list_service_mac.mm
diff --git a/chrome/browser/ui/app_list/app_list_service_mac.mm b/chrome/browser/ui/app_list/app_list_service_mac.mm
index 096c9ff1bbe481bda6406b81a3eca2485d952a7d..21482adb1ce54493043482addad8152721dcc236 100644
--- a/chrome/browser/ui/app_list/app_list_service_mac.mm
+++ b/chrome/browser/ui/app_list/app_list_service_mac.mm
@@ -266,17 +266,6 @@ void GetAppListWindowOrigins(
start_origin);
}
-AppListServiceMac* GetActiveInstance() {
- if (app_list::switches::IsMacViewsAppListEnabled()) {
-#if defined(TOOLKIT_VIEWS)
- // TODO(tapted): Return AppListServiceViewsMac instance.
-#else
- NOTREACHED();
-#endif
- }
- return AppListServiceCocoaMac::GetInstance();
-}
-
} // namespace
AppListServiceMac::AppListServiceMac() {
@@ -512,13 +501,14 @@ void AppListServiceMac::WindowAnimationDidEnd() {
// static
AppListService* AppListService::Get() {
- return GetActiveInstance();
+ return AppListServiceCocoaMac::GetInstance();
}
// static
void AppListService::InitAll(Profile* initial_profile,
const base::FilePath& profile_path) {
- GetActiveInstance()->InitWithProfilePath(initial_profile, profile_path);
+ AppListServiceCocoaMac::GetInstance()->InitWithProfilePath(initial_profile,
+ profile_path);
}
@implementation AppListAnimationController
@@ -583,10 +573,9 @@ void AppListService::InitAll(Profile* initial_profile,
- (void)animationDidEnd:(NSAnimation*)animation {
content::BrowserThread::PostTask(
- content::BrowserThread::UI,
- FROM_HERE,
+ content::BrowserThread::UI, FROM_HERE,
base::Bind(&AppListServiceMac::WindowAnimationDidEnd,
- base::Unretained(GetActiveInstance())));
+ base::Unretained(AppListServiceCocoaMac::GetInstance())));
}
@end

Powered by Google App Engine
This is Rietveld 408576698