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

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

Issue 23460005: Show modal dialog to tell users that the profile is managed when it's the case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_
7 7
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "chrome/browser/extensions/api/developer_private/entry_picker.h" 9 #include "chrome/browser/extensions/api/developer_private/entry_picker.h"
10 #include "chrome/browser/extensions/api/file_system/file_system_api.h" 10 #include "chrome/browser/extensions/api/file_system/file_system_api.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 DECLARE_EXTENSION_FUNCTION("developerPrivate.getStrings", 354 DECLARE_EXTENSION_FUNCTION("developerPrivate.getStrings",
355 DEVELOPERPRIVATE_GETSTRINGS); 355 DEVELOPERPRIVATE_GETSTRINGS);
356 356
357 protected: 357 protected:
358 virtual ~DeveloperPrivateGetStringsFunction(); 358 virtual ~DeveloperPrivateGetStringsFunction();
359 359
360 // ExtensionFunction 360 // ExtensionFunction
361 virtual bool RunImpl() OVERRIDE; 361 virtual bool RunImpl() OVERRIDE;
362 }; 362 };
363 363
364 class DeveloperPrivateIsProfileManagedFunction : public SyncExtensionFunction {
365 public:
366 DECLARE_EXTENSION_FUNCTION("developerPrivate.isProfileManaged",
367 DEVELOPERPRIVATE_ISPROFILEMANAGED);
368
369 protected:
370 virtual ~DeveloperPrivateIsProfileManagedFunction();
371
372 // ExtensionFunction
373 virtual bool RunImpl() OVERRIDE;
374 };
375
364 class DeveloperPrivateExportSyncfsFolderToLocalfsFunction 376 class DeveloperPrivateExportSyncfsFolderToLocalfsFunction
365 : public AsyncExtensionFunction { 377 : public AsyncExtensionFunction {
366 public: 378 public:
367 DECLARE_EXTENSION_FUNCTION("developerPrivate.exportSyncfsFolderToLocalfs", 379 DECLARE_EXTENSION_FUNCTION("developerPrivate.exportSyncfsFolderToLocalfs",
368 DEVELOPERPRIVATE_LOADUNPACKEDCROS); 380 DEVELOPERPRIVATE_LOADUNPACKEDCROS);
369 381
370 DeveloperPrivateExportSyncfsFolderToLocalfsFunction(); 382 DeveloperPrivateExportSyncfsFolderToLocalfsFunction();
371 383
372 protected: 384 protected:
373 virtual ~DeveloperPrivateExportSyncfsFolderToLocalfsFunction(); 385 virtual ~DeveloperPrivateExportSyncfsFolderToLocalfsFunction();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 434
423 void GetUnpackedExtension(const base::FilePath& path, 435 void GetUnpackedExtension(const base::FilePath& path,
424 const ExtensionSet* extensions); 436 const ExtensionSet* extensions);
425 }; 437 };
426 438
427 } // namespace api 439 } // namespace api
428 440
429 } // namespace extensions 441 } // namespace extensions
430 442
431 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 443 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698