| OLD | NEW |
| 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 "chrome/browser/ui/app_list/start_page_service.h" | 5 #include "chrome/browser/ui/app_list/start_page_service.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/media/media_stream_infobar_delegate.h" | 12 #include "chrome/browser/media/media_stream_infobar_delegate.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/app_list/recommended_apps.h" | 14 #include "chrome/browser/ui/app_list/recommended_apps.h" |
| 15 #include "chrome/browser/ui/app_list/start_page_observer.h" | 15 #include "chrome/browser/ui/app_list/start_page_observer.h" |
| 16 #include "chrome/browser/ui/app_list/start_page_service_factory.h" | 16 #include "chrome/browser/ui/app_list/start_page_service_factory.h" |
| 17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 19 #include "content/public/browser/notification_details.h" | 19 #include "content/public/browser/notification_details.h" |
| 20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
| 23 #include "content/public/browser/notification_source.h" | 23 #include "content/public/browser/notification_source.h" |
| 24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
| 25 #include "content/public/browser/web_contents_delegate.h" | 25 #include "content/public/browser/web_contents_delegate.h" |
| 26 #include "extensions/browser/extension_system_provider.h" |
| 27 #include "extensions/browser/extensions_browser_client.h" |
| 26 #include "extensions/common/extension.h" | 28 #include "extensions/common/extension.h" |
| 27 #include "ui/app_list/app_list_switches.h" | 29 #include "ui/app_list/app_list_switches.h" |
| 28 | 30 |
| 29 namespace app_list { | 31 namespace app_list { |
| 30 | 32 |
| 31 class StartPageService::ProfileDestroyObserver | 33 class StartPageService::ProfileDestroyObserver |
| 32 : public content::NotificationObserver { | 34 : public content::NotificationObserver { |
| 33 public: | 35 public: |
| 34 explicit ProfileDestroyObserver(StartPageService* service) | 36 explicit ProfileDestroyObserver(StartPageService* service) |
| 35 : service_(service) { | 37 : service_(service) { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 FOR_EACH_OBSERVER(StartPageObserver, | 155 FOR_EACH_OBSERVER(StartPageObserver, |
| 154 observers_, | 156 observers_, |
| 155 OnSpeechRecognitionStateChanged(new_state)); | 157 OnSpeechRecognitionStateChanged(new_state)); |
| 156 } | 158 } |
| 157 | 159 |
| 158 void StartPageService::Shutdown() { | 160 void StartPageService::Shutdown() { |
| 159 contents_.reset(); | 161 contents_.reset(); |
| 160 } | 162 } |
| 161 | 163 |
| 162 } // namespace app_list | 164 } // namespace app_list |
| OLD | NEW |