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

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

Issue 3462011: Manual merge of 60334 - Add a launchApp method to extension management API.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/517/src/
Patch Set: Created 10 years, 3 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>();
276 RegisterFunction<SetEnabledFunction>(); 277 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>();
283 RegisterFunction<SetStoreLoginFunction>(); 284 RegisterFunction<SetStoreLoginFunction>();
284 } 285 }
285 286
286 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { 287 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) {
287 for (FactoryMap::iterator iter = factories_.begin(); 288 for (FactoryMap::iterator iter = factories_.begin();
288 iter != factories_.end(); ++iter) { 289 iter != factories_.end(); ++iter) {
289 names->push_back(iter->first); 290 names->push_back(iter->first);
290 } 291 }
291 } 292 }
292 293
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 } else { 491 } else {
491 NOTREACHED(); 492 NOTREACHED();
492 base::KillProcess(render_view_host_->process()->GetHandle(), 493 base::KillProcess(render_view_host_->process()->GetHandle(),
493 ResultCodes::KILLED_BAD_MESSAGE, false); 494 ResultCodes::KILLED_BAD_MESSAGE, false);
494 } 495 }
495 } 496 }
496 497
497 Profile* ExtensionFunctionDispatcher::profile() { 498 Profile* ExtensionFunctionDispatcher::profile() {
498 return profile_; 499 return profile_;
499 } 500 }
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