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

Side by Side Diff: extensions/browser/api/management/management_api.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 (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 "extensions/browser/api/management/management_api.h" 5 #include "extensions/browser/api/management/management_api.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 462
463 return RespondNow(NoArguments()); 463 return RespondNow(NoArguments());
464 } 464 }
465 465
466 void ManagementSetEnabledFunction::OnInstallPromptDone(bool did_accept) { 466 void ManagementSetEnabledFunction::OnInstallPromptDone(bool did_accept) {
467 if (did_accept) { 467 if (did_accept) {
468 ManagementAPI::GetFactoryInstance() 468 ManagementAPI::GetFactoryInstance()
469 ->Get(browser_context()) 469 ->Get(browser_context())
470 ->GetDelegate() 470 ->GetDelegate()
471 ->EnableExtension(browser_context(), extension_id_); 471 ->EnableExtension(browser_context(), extension_id_);
472 Respond(OneArgument(base::MakeUnique<base::FundamentalValue>(true))); 472 Respond(OneArgument(base::MakeUnique<base::Value>(true)));
473 } else { 473 } else {
474 Respond(Error(keys::kUserDidNotReEnableError)); 474 Respond(Error(keys::kUserDidNotReEnableError));
475 } 475 }
476 476
477 Release(); // Balanced in Run(). 477 Release(); // Balanced in Run().
478 } 478 }
479 479
480 void ManagementSetEnabledFunction::OnRequirementsChecked( 480 void ManagementSetEnabledFunction::OnRequirementsChecked(
481 const std::vector<std::string>& requirements_errors) { 481 const std::vector<std::string>& requirements_errors) {
482 if (requirements_errors.empty()) { 482 if (requirements_errors.empty()) {
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 ManagementAPI::GetFactoryInstance() { 865 ManagementAPI::GetFactoryInstance() {
866 return g_factory.Pointer(); 866 return g_factory.Pointer();
867 } 867 }
868 868
869 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { 869 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) {
870 management_event_router_.reset(new ManagementEventRouter(browser_context_)); 870 management_event_router_.reset(new ManagementEventRouter(browser_context_));
871 EventRouter::Get(browser_context_)->UnregisterObserver(this); 871 EventRouter::Get(browser_context_)->UnregisterObserver(this);
872 } 872 }
873 873
874 } // namespace extensions 874 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/hid/hid_api.cc ('k') | extensions/browser/api/metrics_private/metrics_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698