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

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

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 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 "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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 return RespondNow(NoArguments()); 464 return RespondNow(NoArguments());
465 } 465 }
466 466
467 void ManagementSetEnabledFunction::OnInstallPromptDone(bool did_accept) { 467 void ManagementSetEnabledFunction::OnInstallPromptDone(bool did_accept) {
468 if (did_accept) { 468 if (did_accept) {
469 ManagementAPI::GetFactoryInstance() 469 ManagementAPI::GetFactoryInstance()
470 ->Get(browser_context()) 470 ->Get(browser_context())
471 ->GetDelegate() 471 ->GetDelegate()
472 ->EnableExtension(browser_context(), extension_id_); 472 ->EnableExtension(browser_context(), extension_id_);
473 Respond(OneArgument(base::MakeUnique<base::FundamentalValue>(true))); 473 Respond(OneArgument(base::MakeUnique<base::Value>(true)));
474 } else { 474 } else {
475 Respond(Error(keys::kUserDidNotReEnableError)); 475 Respond(Error(keys::kUserDidNotReEnableError));
476 } 476 }
477 477
478 Release(); // Balanced in Run(). 478 Release(); // Balanced in Run().
479 } 479 }
480 480
481 void ManagementSetEnabledFunction::OnRequirementsChecked( 481 void ManagementSetEnabledFunction::OnRequirementsChecked(
482 const std::vector<std::string>& requirements_errors) { 482 const std::vector<std::string>& requirements_errors) {
483 if (requirements_errors.empty()) { 483 if (requirements_errors.empty()) {
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 ManagementAPI::GetFactoryInstance() { 884 ManagementAPI::GetFactoryInstance() {
885 return g_factory.Pointer(); 885 return g_factory.Pointer();
886 } 886 }
887 887
888 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { 888 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) {
889 management_event_router_.reset(new ManagementEventRouter(browser_context_)); 889 management_event_router_.reset(new ManagementEventRouter(browser_context_));
890 EventRouter::Get(browser_context_)->UnregisterObserver(this); 890 EventRouter::Get(browser_context_)->UnregisterObserver(this);
891 } 891 }
892 892
893 } // namespace extensions 893 } // 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