OLD | NEW |
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_view_delegate.h" | 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "components/prefs/pref_service.h" | 46 #include "components/prefs/pref_service.h" |
47 #include "components/signin/core/browser/signin_manager.h" | 47 #include "components/signin/core/browser/signin_manager.h" |
48 #include "components/user_prefs/user_prefs.h" | 48 #include "components/user_prefs/user_prefs.h" |
49 #include "content/public/browser/browser_thread.h" | 49 #include "content/public/browser/browser_thread.h" |
50 #include "content/public/browser/notification_service.h" | 50 #include "content/public/browser/notification_service.h" |
51 #include "content/public/browser/page_navigator.h" | 51 #include "content/public/browser/page_navigator.h" |
52 #include "content/public/browser/render_view_host.h" | 52 #include "content/public/browser/render_view_host.h" |
53 #include "content/public/browser/render_widget_host.h" | 53 #include "content/public/browser/render_widget_host.h" |
54 #include "content/public/browser/render_widget_host_view.h" | 54 #include "content/public/browser/render_widget_host_view.h" |
55 #include "content/public/browser/speech_recognition_session_preamble.h" | 55 #include "content/public/browser/speech_recognition_session_preamble.h" |
56 #include "content/public/browser/user_metrics.h" | |
57 #include "content/public/browser/web_contents.h" | 56 #include "content/public/browser/web_contents.h" |
58 #include "extensions/browser/extension_registry.h" | 57 #include "extensions/browser/extension_registry.h" |
59 #include "extensions/common/constants.h" | 58 #include "extensions/common/constants.h" |
60 #include "extensions/common/extension_set.h" | 59 #include "extensions/common/extension_set.h" |
61 #include "extensions/common/manifest_constants.h" | 60 #include "extensions/common/manifest_constants.h" |
62 #include "extensions/common/manifest_handlers/launcher_page_info.h" | 61 #include "extensions/common/manifest_handlers/launcher_page_info.h" |
63 #include "ui/app_list/app_list_switches.h" | 62 #include "ui/app_list/app_list_switches.h" |
64 #include "ui/app_list/search_box_model.h" | 63 #include "ui/app_list/search_box_model.h" |
65 #include "ui/app_list/search_controller.h" | 64 #include "ui/app_list/search_controller.h" |
66 #include "ui/app_list/speech_ui_model.h" | 65 #include "ui/app_list/speech_ui_model.h" |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 const content::NotificationDetails& details) { | 701 const content::NotificationDetails& details) { |
703 DCHECK_EQ(chrome::NOTIFICATION_APP_TERMINATING, type); | 702 DCHECK_EQ(chrome::NOTIFICATION_APP_TERMINATING, type); |
704 | 703 |
705 SetProfile(nullptr); // Ensures launcher page web contents are torn down. | 704 SetProfile(nullptr); // Ensures launcher page web contents are torn down. |
706 | 705 |
707 // SigninManagerFactory is not a leaky singleton (unlike this class), and | 706 // SigninManagerFactory is not a leaky singleton (unlike this class), and |
708 // its destructor will check that it has no remaining observers. | 707 // its destructor will check that it has no remaining observers. |
709 scoped_observer_.RemoveAll(); | 708 scoped_observer_.RemoveAll(); |
710 SigninManagerFactory::GetInstance()->RemoveObserver(this); | 709 SigninManagerFactory::GetInstance()->RemoveObserver(this); |
711 } | 710 } |
OLD | NEW |