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/extensions/chrome_extensions_browser_client.h" | 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/version.h" | 9 #include "base/version.h" |
10 #include "chrome/browser/app_mode/app_mode_utils.h" | 10 #include "chrome/browser/app_mode/app_mode_utils.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 pref_service->SetString(pref_names::kLastChromeVersion, | 200 pref_service->SetString(pref_names::kLastChromeVersion, |
201 current_version); | 201 current_version); |
202 | 202 |
203 // If there was no version string in prefs, assume we're out of date. | 203 // If there was no version string in prefs, assume we're out of date. |
204 if (!last_version.IsValid()) | 204 if (!last_version.IsValid()) |
205 return true; | 205 return true; |
206 | 206 |
207 return last_version.IsOlderThan(current_version); | 207 return last_version.IsOlderThan(current_version); |
208 } | 208 } |
209 | 209 |
| 210 void ChromeExtensionsBrowserClient::PermitExternalProtocolHandler() { |
| 211 ExternalProtocolHandler::PermitLaunchUrl(); |
| 212 } |
| 213 |
210 scoped_ptr<AppSorting> ChromeExtensionsBrowserClient::CreateAppSorting() { | 214 scoped_ptr<AppSorting> ChromeExtensionsBrowserClient::CreateAppSorting() { |
211 return scoped_ptr<AppSorting>(new ChromeAppSorting()); | 215 return scoped_ptr<AppSorting>(new ChromeAppSorting()); |
212 } | 216 } |
213 | 217 |
214 bool ChromeExtensionsBrowserClient::IsRunningInForcedAppMode() { | 218 bool ChromeExtensionsBrowserClient::IsRunningInForcedAppMode() { |
215 return chrome::IsRunningInForcedAppMode(); | 219 return chrome::IsRunningInForcedAppMode(); |
216 } | 220 } |
217 | 221 |
218 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor( | 222 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor( |
219 content::BrowserContext* context) { | 223 content::BrowserContext* context) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 content::BrowserContext* context) const { | 277 content::BrowserContext* context) const { |
274 #if defined(ENABLE_EXTENSIONS) | 278 #if defined(ENABLE_EXTENSIONS) |
275 return scoped_ptr<extensions::RuntimeAPIDelegate>( | 279 return scoped_ptr<extensions::RuntimeAPIDelegate>( |
276 new ChromeRuntimeAPIDelegate(context)); | 280 new ChromeRuntimeAPIDelegate(context)); |
277 #else | 281 #else |
278 return scoped_ptr<extensions::RuntimeAPIDelegate>(); | 282 return scoped_ptr<extensions::RuntimeAPIDelegate>(); |
279 #endif | 283 #endif |
280 } | 284 } |
281 | 285 |
282 } // namespace extensions | 286 } // namespace extensions |
OLD | NEW |