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

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

Issue 3416022: Revert 60357 - Merge 60334 - Add a launchApp method to extension management A... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/517/src/
Patch Set: Created 10 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_management_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/extension_function_dispatcher.h" 5 #include "chrome/browser/extensions/extension_function_dispatcher.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/singleton.h" 10 #include "base/singleton.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 RegisterFunction<SetTitleSidebarFunction>(); 266 RegisterFunction<SetTitleSidebarFunction>();
267 RegisterFunction<ShowSidebarFunction>(); 267 RegisterFunction<ShowSidebarFunction>();
268 268
269 #if defined(TOOLKIT_VIEWS) 269 #if defined(TOOLKIT_VIEWS)
270 // Input. 270 // Input.
271 RegisterFunction<SendKeyboardEventInputFunction>(); 271 RegisterFunction<SendKeyboardEventInputFunction>();
272 #endif 272 #endif
273 273
274 // Management. 274 // Management.
275 RegisterFunction<GetAllExtensionsFunction>(); 275 RegisterFunction<GetAllExtensionsFunction>();
276 RegisterFunction<LaunchAppFunction>();
277 RegisterFunction<SetEnabledFunction>(); 276 RegisterFunction<SetEnabledFunction>();
277 RegisterFunction<InstallFunction>();
278 RegisterFunction<UninstallFunction>(); 278 RegisterFunction<UninstallFunction>();
279 279
280 // WebstorePrivate. 280 // WebstorePrivate.
281 RegisterFunction<GetSyncLoginFunction>(); 281 RegisterFunction<GetSyncLoginFunction>();
282 RegisterFunction<GetStoreLoginFunction>(); 282 RegisterFunction<GetStoreLoginFunction>();
283 RegisterFunction<InstallFunction>();
284 RegisterFunction<SetStoreLoginFunction>(); 283 RegisterFunction<SetStoreLoginFunction>();
285 } 284 }
286 285
287 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { 286 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) {
288 for (FactoryMap::iterator iter = factories_.begin(); 287 for (FactoryMap::iterator iter = factories_.begin();
289 iter != factories_.end(); ++iter) { 288 iter != factories_.end(); ++iter) {
290 names->push_back(iter->first); 289 names->push_back(iter->first);
291 } 290 }
292 } 291 }
293 292
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 } else { 490 } else {
492 NOTREACHED(); 491 NOTREACHED();
493 base::KillProcess(render_view_host_->process()->GetHandle(), 492 base::KillProcess(render_view_host_->process()->GetHandle(),
494 ResultCodes::KILLED_BAD_MESSAGE, false); 493 ResultCodes::KILLED_BAD_MESSAGE, false);
495 } 494 }
496 } 495 }
497 496
498 Profile* ExtensionFunctionDispatcher::profile() { 497 Profile* ExtensionFunctionDispatcher::profile() {
499 return profile_; 498 return profile_;
500 } 499 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_management_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698