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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service_mac.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/app_shim/app_shim_handler_mac.h" 5 #include "apps/app_shim/app_shim_handler_mac.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_system.h" 15 #include "chrome/browser/extensions/extension_system.h"
16 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" 16 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
17 #include "chrome/browser/ui/app_list/app_list_service.h" 17 #include "chrome/browser/ui/app_list/app_list_service.h"
18 #include "chrome/browser/ui/app_list/app_list_service_impl.h" 18 #include "chrome/browser/ui/app_list/app_list_service_impl.h"
19 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" 19 #include "chrome/browser/ui/app_list/app_list_view_delegate.h"
20 #include "chrome/browser/ui/extensions/application_launch.h" 20 #include "chrome/browser/ui/extensions/application_launch.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 apps::AppShimLaunchType launch_type) OVERRIDE; 68 apps::AppShimLaunchType launch_type) OVERRIDE;
69 virtual void OnShimClose(apps::AppShimHandler::Host* host) OVERRIDE; 69 virtual void OnShimClose(apps::AppShimHandler::Host* host) OVERRIDE;
70 virtual void OnShimFocus(apps::AppShimHandler::Host* host) OVERRIDE; 70 virtual void OnShimFocus(apps::AppShimHandler::Host* host) OVERRIDE;
71 virtual void OnShimQuit(apps::AppShimHandler::Host* host) OVERRIDE; 71 virtual void OnShimQuit(apps::AppShimHandler::Host* host) OVERRIDE;
72 72
73 private: 73 private:
74 friend struct DefaultSingletonTraits<AppListServiceMac>; 74 friend struct DefaultSingletonTraits<AppListServiceMac>;
75 75
76 AppListServiceMac() {} 76 AppListServiceMac() {}
77 77
78 scoped_nsobject<AppListWindowController> window_controller_; 78 base::scoped_nsobject<AppListWindowController> window_controller_;
79 79
80 // App shim hosts observing when the app list is dismissed. In normal user 80 // App shim hosts observing when the app list is dismissed. In normal user
81 // usage there should only be one. However, it can't be guaranteed, so use 81 // usage there should only be one. However, it can't be guaranteed, so use
82 // an ObserverList rather than handling corner cases. 82 // an ObserverList rather than handling corner cases.
83 ObserverList<apps::AppShimHandler::Host> observers_; 83 ObserverList<apps::AppShimHandler::Host> observers_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac); 85 DISALLOW_COPY_AND_ASSIGN(AppListServiceMac);
86 }; 86 };
87 87
88 class AppListControllerDelegateCocoa : public AppListControllerDelegate { 88 class AppListControllerDelegateCocoa : public AppListControllerDelegate {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 416
417 // static 417 // static
418 AppListService* AppListService::Get() { 418 AppListService* AppListService::Get() {
419 return AppListServiceMac::GetInstance(); 419 return AppListServiceMac::GetInstance();
420 } 420 }
421 421
422 // static 422 // static
423 void AppListService::InitAll(Profile* initial_profile) { 423 void AppListService::InitAll(Profile* initial_profile) {
424 Get()->Init(initial_profile); 424 Get()->Init(initial_profile);
425 } 425 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698