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 "apps/shell/shell_extensions_browser_client.h" | 5 #include "apps/shell/shell_extensions_browser_client.h" |
6 | 6 |
7 #include "apps/shell/shell_app_sorting.h" | 7 #include "apps/shell/shell_app_sorting.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/prefs/pref_service_factory.h" | 9 #include "base/prefs/pref_service_factory.h" |
10 #include "base/prefs/testing_pref_store.h" | 10 #include "base/prefs/testing_pref_store.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 PrefService* ShellExtensionsBrowserClient::GetPrefServiceForContext( | 84 PrefService* ShellExtensionsBrowserClient::GetPrefServiceForContext( |
85 BrowserContext* context) { | 85 BrowserContext* context) { |
86 return prefs_.get(); | 86 return prefs_.get(); |
87 } | 87 } |
88 | 88 |
89 bool ShellExtensionsBrowserClient::DeferLoadingBackgroundHosts( | 89 bool ShellExtensionsBrowserClient::DeferLoadingBackgroundHosts( |
90 BrowserContext* context) const { | 90 BrowserContext* context) const { |
91 return false; | 91 return false; |
92 } | 92 } |
93 | 93 |
| 94 bool ShellExtensionsBrowserClient::IsBackgroundPageAllowed( |
| 95 BrowserContext* context) const { |
| 96 return true; |
| 97 } |
| 98 |
94 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { | 99 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { |
95 // TODO(jamescook): We might want to tell extensions when app_shell updates. | 100 // TODO(jamescook): We might want to tell extensions when app_shell updates. |
96 return false; | 101 return false; |
97 } | 102 } |
98 | 103 |
99 scoped_ptr<extensions::AppSorting> | 104 scoped_ptr<extensions::AppSorting> |
100 ShellExtensionsBrowserClient::CreateAppSorting() { | 105 ShellExtensionsBrowserClient::CreateAppSorting() { |
101 return scoped_ptr<extensions::AppSorting>(new ShellAppSorting).Pass(); | 106 return scoped_ptr<extensions::AppSorting>(new ShellAppSorting).Pass(); |
102 } | 107 } |
103 | 108 |
104 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { | 109 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { |
105 return false; | 110 return false; |
106 } | 111 } |
107 | 112 |
108 content::JavaScriptDialogManager* | 113 content::JavaScriptDialogManager* |
109 ShellExtensionsBrowserClient::GetJavaScriptDialogManager() { | 114 ShellExtensionsBrowserClient::GetJavaScriptDialogManager() { |
110 // TODO(jamescook): Create a JavaScriptDialogManager or reuse the one from | 115 // TODO(jamescook): Create a JavaScriptDialogManager or reuse the one from |
111 // content_shell. | 116 // content_shell. |
112 NOTREACHED(); | 117 NOTREACHED(); |
113 return NULL; | 118 return NULL; |
114 } | 119 } |
115 | 120 |
116 } // namespace apps | 121 } // namespace apps |
OLD | NEW |