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

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

Issue 4727001: Split the private webstore install API into two parts.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Management. 275 // Management.
276 RegisterFunction<GetAllExtensionsFunction>(); 276 RegisterFunction<GetAllExtensionsFunction>();
277 RegisterFunction<GetExtensionByIdFunction>(); 277 RegisterFunction<GetExtensionByIdFunction>();
278 RegisterFunction<LaunchAppFunction>(); 278 RegisterFunction<LaunchAppFunction>();
279 RegisterFunction<SetEnabledFunction>(); 279 RegisterFunction<SetEnabledFunction>();
280 RegisterFunction<UninstallFunction>(); 280 RegisterFunction<UninstallFunction>();
281 281
282 // WebstorePrivate. 282 // WebstorePrivate.
283 RegisterFunction<GetBrowserLoginFunction>(); 283 RegisterFunction<GetBrowserLoginFunction>();
284 RegisterFunction<GetStoreLoginFunction>(); 284 RegisterFunction<GetStoreLoginFunction>();
285 RegisterFunction<InstallFunction>();
286 RegisterFunction<SetStoreLoginFunction>(); 285 RegisterFunction<SetStoreLoginFunction>();
287 RegisterFunction<PromptBrowserLoginFunction>(); 286 RegisterFunction<PromptBrowserLoginFunction>();
287 RegisterFunction<InstallFunction>();
Erik does not do reviews 2010/11/09 16:32:21 shouldn't we remove this one?
asargent_no_longer_on_chrome 2010/11/10 00:23:48 Done.
288 RegisterFunction<BeginInstallFunction>();
289 RegisterFunction<CompleteInstallFunction>();
288 } 290 }
289 291
290 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { 292 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) {
291 for (FactoryMap::iterator iter = factories_.begin(); 293 for (FactoryMap::iterator iter = factories_.begin();
292 iter != factories_.end(); ++iter) { 294 iter != factories_.end(); ++iter) {
293 names->push_back(iter->first); 295 names->push_back(iter->first);
294 } 296 }
295 } 297 }
296 298
297 bool FactoryRegistry::OverrideFunction(const std::string& name, 299 bool FactoryRegistry::OverrideFunction(const std::string& name,
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 } else { 490 } else {
489 NOTREACHED(); 491 NOTREACHED();
490 base::KillProcess(render_view_host_->process()->GetHandle(), 492 base::KillProcess(render_view_host_->process()->GetHandle(),
491 ResultCodes::KILLED_BAD_MESSAGE, false); 493 ResultCodes::KILLED_BAD_MESSAGE, false);
492 } 494 }
493 } 495 }
494 496
495 Profile* ExtensionFunctionDispatcher::profile() { 497 Profile* ExtensionFunctionDispatcher::profile() {
496 return profile_; 498 return profile_;
497 } 499 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698