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

Side by Side Diff: chrome/browser/extensions/api/commands/command_service.cc

Issue 1497193002: Remove all the ephemeral apps code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review, Devlin review. Created 5 years 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 (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/extensions/api/commands/command_service.h" 5 #include "chrome/browser/extensions/api/commands/command_service.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/prefs/scoped_user_pref_update.h" 10 #include "base/prefs/scoped_user_pref_update.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 content::Details<std::pair<const std::string, const std::string> >( 308 content::Details<std::pair<const std::string, const std::string> >(
309 &details)); 309 &details));
310 310
311 return true; 311 return true;
312 } 312 }
313 313
314 void CommandService::OnExtensionWillBeInstalled( 314 void CommandService::OnExtensionWillBeInstalled(
315 content::BrowserContext* browser_context, 315 content::BrowserContext* browser_context,
316 const Extension* extension, 316 const Extension* extension,
317 bool is_update, 317 bool is_update,
318 bool from_ephemeral,
319 const std::string& old_name) { 318 const std::string& old_name) {
320 UpdateKeybindings(extension); 319 UpdateKeybindings(extension);
321 } 320 }
322 321
323 void CommandService::OnExtensionUninstalled( 322 void CommandService::OnExtensionUninstalled(
324 content::BrowserContext* browser_context, 323 content::BrowserContext* browser_context,
325 const Extension* extension, 324 const Extension* extension,
326 extensions::UninstallReason reason) { 325 extensions::UninstallReason reason) {
327 // Adding a component extensions will only trigger install the first time on a 326 // Adding a component extensions will only trigger install the first time on a
328 // clean profile or on a version increase (see 327 // clean profile or on a version increase (see
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 return true; 908 return true;
910 } 909 }
911 910
912 template <> 911 template <>
913 void 912 void
914 BrowserContextKeyedAPIFactory<CommandService>::DeclareFactoryDependencies() { 913 BrowserContextKeyedAPIFactory<CommandService>::DeclareFactoryDependencies() {
915 DependsOn(ExtensionCommandsGlobalRegistry::GetFactoryInstance()); 914 DependsOn(ExtensionCommandsGlobalRegistry::GetFactoryInstance());
916 } 915 }
917 916
918 } // namespace extensions 917 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698