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/version.h" | 8 #include "base/version.h" |
9 #include "chrome/browser/app_mode/app_mode_utils.h" | 9 #include "chrome/browser/app_mode/app_mode_utils.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 pref_service->SetString(pref_names::kLastChromeVersion, | 176 pref_service->SetString(pref_names::kLastChromeVersion, |
177 current_version); | 177 current_version); |
178 | 178 |
179 // If there was no version string in prefs, assume we're out of date. | 179 // If there was no version string in prefs, assume we're out of date. |
180 if (!last_version.IsValid()) | 180 if (!last_version.IsValid()) |
181 return true; | 181 return true; |
182 | 182 |
183 return last_version.IsOlderThan(current_version); | 183 return last_version.IsOlderThan(current_version); |
184 } | 184 } |
185 | 185 |
186 void ChromeExtensionsBrowserClient::PermitExternalProtocolHandler() { | |
187 ExternalProtocolHandler::PermitLaunchUrl(); | |
188 } | |
189 | |
190 scoped_ptr<AppSorting> ChromeExtensionsBrowserClient::CreateAppSorting() { | 186 scoped_ptr<AppSorting> ChromeExtensionsBrowserClient::CreateAppSorting() { |
191 return scoped_ptr<AppSorting>(new ChromeAppSorting()); | 187 return scoped_ptr<AppSorting>(new ChromeAppSorting()); |
192 } | 188 } |
193 | 189 |
194 bool ChromeExtensionsBrowserClient::IsRunningInForcedAppMode() { | 190 bool ChromeExtensionsBrowserClient::IsRunningInForcedAppMode() { |
195 return chrome::IsRunningInForcedAppMode(); | 191 return chrome::IsRunningInForcedAppMode(); |
196 } | 192 } |
197 | 193 |
198 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor( | 194 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor( |
199 content::BrowserContext* context) { | 195 content::BrowserContext* context) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 registry->RegisterFunction<extensions::RuntimeRequestUpdateCheckFunction>(); | 232 registry->RegisterFunction<extensions::RuntimeRequestUpdateCheckFunction>(); |
237 registry->RegisterFunction<extensions::RuntimeRestartFunction>(); | 233 registry->RegisterFunction<extensions::RuntimeRestartFunction>(); |
238 | 234 |
239 // Generated APIs. | 235 // Generated APIs. |
240 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); | 236 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); |
241 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); | 237 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); |
242 #endif | 238 #endif |
243 } | 239 } |
244 | 240 |
245 } // namespace extensions | 241 } // namespace extensions |
OLD | NEW |