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

Side by Side Diff: chrome/browser/ui/app_list/app_list_controller_delegate.cc

Issue 2131463002: Purge the App Launcher code from Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Zap mac-specific icon assets Created 4 years, 5 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 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/ui/app_list/app_list_controller_delegate.h" 5 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/extensions/extension_util.h" 9 #include "chrome/browser/extensions/extension_util.h"
10 #include "chrome/browser/extensions/install_tracker_factory.h" 10 #include "chrome/browser/extensions/install_tracker_factory.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 Profile* profile, 79 Profile* profile,
80 const std::string& app_id) { 80 const std::string& app_id) {
81 const extensions::Extension* extension = GetExtension(profile, app_id); 81 const extensions::Extension* extension = GetExtension(profile, app_id);
82 const extensions::ManagementPolicy* policy = 82 const extensions::ManagementPolicy* policy =
83 extensions::ExtensionSystem::Get(profile)->management_policy(); 83 extensions::ExtensionSystem::Get(profile)->management_policy();
84 return extension && 84 return extension &&
85 policy->UserMayModifySettings(extension, NULL); 85 policy->UserMayModifySettings(extension, NULL);
86 } 86 }
87 87
88 bool AppListControllerDelegate::CanDoShowAppInfoFlow() { 88 bool AppListControllerDelegate::CanDoShowAppInfoFlow() {
89 #if defined(OS_MACOSX)
90 // Cocoa app list doesn't yet support the app info dialog.
91 return false;
92 #endif
93 return CanShowAppInfoDialog(); 89 return CanShowAppInfoDialog();
94 } 90 }
95 91
96 void AppListControllerDelegate::DoShowAppInfoFlow( 92 void AppListControllerDelegate::DoShowAppInfoFlow(
97 Profile* profile, 93 Profile* profile,
98 const std::string& extension_id) { 94 const std::string& extension_id) {
99 DCHECK(CanDoShowAppInfoFlow()); 95 DCHECK(CanDoShowAppInfoFlow());
100 const extensions::Extension* extension = GetExtension(profile, extension_id); 96 const extensions::Extension* extension = GetExtension(profile, extension_id);
101 DCHECK(extension); 97 DCHECK(extension);
102 98
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 out_apps->InsertAll(registry->enabled_extensions()); 205 out_apps->InsertAll(registry->enabled_extensions());
210 out_apps->InsertAll(registry->disabled_extensions()); 206 out_apps->InsertAll(registry->disabled_extensions());
211 out_apps->InsertAll(registry->terminated_extensions()); 207 out_apps->InsertAll(registry->terminated_extensions());
212 } 208 }
213 209
214 void AppListControllerDelegate::OnSearchStarted() { 210 void AppListControllerDelegate::OnSearchStarted() {
215 #if defined(ENABLE_RLZ) 211 #if defined(ENABLE_RLZ)
216 rlz::RLZTracker::RecordAppListSearch(); 212 rlz::RLZTracker::RecordAppListSearch();
217 #endif 213 #endif
218 } 214 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698