Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chrome/browser/extensions/chrome_extensions_browser_client.cc

Issue 1254363004: Move ownership of AppSorting from ExtensionPrefs to ExtensionSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 if (!last_version.IsValid()) 214 if (!last_version.IsValid())
215 return true; 215 return true;
216 216
217 return last_version.IsOlderThan(current_version); 217 return last_version.IsOlderThan(current_version);
218 } 218 }
219 219
220 void ChromeExtensionsBrowserClient::PermitExternalProtocolHandler() { 220 void ChromeExtensionsBrowserClient::PermitExternalProtocolHandler() {
221 ExternalProtocolHandler::PermitLaunchUrl(); 221 ExternalProtocolHandler::PermitLaunchUrl();
222 } 222 }
223 223
224 scoped_ptr<AppSorting> ChromeExtensionsBrowserClient::CreateAppSorting(
225 content::BrowserContext* context) {
226 return scoped_ptr<AppSorting>(new ChromeAppSorting(context));
227 }
228
229 bool ChromeExtensionsBrowserClient::IsRunningInForcedAppMode() { 224 bool ChromeExtensionsBrowserClient::IsRunningInForcedAppMode() {
230 return chrome::IsRunningInForcedAppMode(); 225 return chrome::IsRunningInForcedAppMode();
231 } 226 }
232 227
233 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor( 228 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor(
234 content::BrowserContext* context) { 229 content::BrowserContext* context) {
235 // The ActivityLog monitors and records function calls and events. 230 // The ActivityLog monitors and records function calls and events.
236 return ActivityLog::GetInstance(context); 231 return ActivityLog::GetInstance(context);
237 } 232 }
238 233
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 ->GetBrowserContext(); 334 ->GetBrowserContext();
340 335
341 // Clean up context menus for the WebView. 336 // Clean up context menus for the WebView.
342 auto menu_manager = 337 auto menu_manager =
343 MenuManager::Get(Profile::FromBrowserContext(browser_context)); 338 MenuManager::Get(Profile::FromBrowserContext(browser_context));
344 menu_manager->RemoveAllContextItems( 339 menu_manager->RemoveAllContextItems(
345 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id)); 340 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id));
346 } 341 }
347 342
348 } // namespace extensions 343 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698