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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 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
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 "chrome/browser/extensions/api/developer_private/developer_private_api. h" 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 // This isn't really an error, but we should keep it like this for 1158 // This isn't really an error, but we should keep it like this for
1159 // backward compatability. 1159 // backward compatability.
1160 Respond(Error(kFileSelectionCanceled)); 1160 Respond(Error(kFileSelectionCanceled));
1161 Release(); 1161 Release();
1162 } 1162 }
1163 1163
1164 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} 1164 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {}
1165 1165
1166 ExtensionFunction::ResponseAction 1166 ExtensionFunction::ResponseAction
1167 DeveloperPrivateIsProfileManagedFunction::Run() { 1167 DeveloperPrivateIsProfileManagedFunction::Run() {
1168 return RespondNow(OneArgument(base::MakeUnique<base::FundamentalValue>( 1168 return RespondNow(OneArgument(base::MakeUnique<base::Value>(
1169 Profile::FromBrowserContext(browser_context())->IsSupervised()))); 1169 Profile::FromBrowserContext(browser_context())->IsSupervised())));
1170 } 1170 }
1171 1171
1172 DeveloperPrivateIsProfileManagedFunction:: 1172 DeveloperPrivateIsProfileManagedFunction::
1173 ~DeveloperPrivateIsProfileManagedFunction() { 1173 ~DeveloperPrivateIsProfileManagedFunction() {
1174 } 1174 }
1175 1175
1176 DeveloperPrivateRequestFileSourceFunction:: 1176 DeveloperPrivateRequestFileSourceFunction::
1177 DeveloperPrivateRequestFileSourceFunction() {} 1177 DeveloperPrivateRequestFileSourceFunction() {}
1178 1178
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 update.extension_id, update.command_name, *update.keybinding); 1453 update.extension_id, update.command_name, *update.keybinding);
1454 } 1454 }
1455 1455
1456 return RespondNow(NoArguments()); 1456 return RespondNow(NoArguments());
1457 } 1457 }
1458 1458
1459 1459
1460 } // namespace api 1460 } // namespace api
1461 1461
1462 } // namespace extensions 1462 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698