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

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: merge. 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 DECLARE_EXTENSION_FUNCTION("developerPrivate.getStrings", 342 DECLARE_EXTENSION_FUNCTION("developerPrivate.getStrings",
343 DEVELOPERPRIVATE_GETSTRINGS); 343 DEVELOPERPRIVATE_GETSTRINGS);
344 344
345 protected: 345 protected:
346 virtual ~DeveloperPrivateGetStringsFunction(); 346 virtual ~DeveloperPrivateGetStringsFunction();
347 347
348 // ExtensionFunction 348 // ExtensionFunction
349 virtual bool RunImpl() OVERRIDE; 349 virtual bool RunImpl() OVERRIDE;
350 }; 350 };
351 351
352 class DeveloperPrivateIsProfileManagedFunction : public SyncExtensionFunction {
353 public:
354 DECLARE_EXTENSION_FUNCTION("developerPrivate.isProfileManaged",
355 DEVELOPERPRIVATE_ISPROFILEMANAGED);
356
357 protected:
358 virtual ~DeveloperPrivateIsProfileManagedFunction();
359
360 // ExtensionFunction
361 virtual bool RunImpl() OVERRIDE;
362 };
363
352 class DeveloperPrivateExportSyncfsFolderToLocalfsFunction 364 class DeveloperPrivateExportSyncfsFolderToLocalfsFunction
353 : public AsyncExtensionFunction { 365 : public AsyncExtensionFunction {
354 public: 366 public:
355 DECLARE_EXTENSION_FUNCTION("developerPrivate.exportSyncfsFolderToLocalfs", 367 DECLARE_EXTENSION_FUNCTION("developerPrivate.exportSyncfsFolderToLocalfs",
356 DEVELOPERPRIVATE_LOADUNPACKEDCROS); 368 DEVELOPERPRIVATE_LOADUNPACKEDCROS);
357 369
358 DeveloperPrivateExportSyncfsFolderToLocalfsFunction(); 370 DeveloperPrivateExportSyncfsFolderToLocalfsFunction();
359 371
360 protected: 372 protected:
361 virtual ~DeveloperPrivateExportSyncfsFolderToLocalfsFunction(); 373 virtual ~DeveloperPrivateExportSyncfsFolderToLocalfsFunction();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 422
411 void GetUnpackedExtension(const base::FilePath& path, 423 void GetUnpackedExtension(const base::FilePath& path,
412 const ExtensionSet* extensions); 424 const ExtensionSet* extensions);
413 }; 425 };
414 426
415 } // namespace api 427 } // namespace api
416 428
417 } // namespace extensions 429 } // namespace extensions
418 430
419 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 431 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698