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

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

Issue 10909239: Rename PACKAGED_APP references to LEGACY_PACKAGED_APP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments Created 8 years, 2 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 "chrome/browser/extensions/api/management/management_api.h" 5 #include "chrome/browser/extensions/api/management/management_api.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 info->offline_enabled = extension.offline_enabled(); 95 info->offline_enabled = extension.offline_enabled();
96 info->version = extension.VersionString(); 96 info->version = extension.VersionString();
97 info->description = extension.description(); 97 info->description = extension.description();
98 info->options_url = extension.options_url().spec(); 98 info->options_url = extension.options_url().spec();
99 info->homepage_url.reset(new std::string( 99 info->homepage_url.reset(new std::string(
100 extension.GetHomepageURL().spec())); 100 extension.GetHomepageURL().spec()));
101 info->may_disable = system->management_policy()-> 101 info->may_disable = system->management_policy()->
102 UserMayModifySettings(&extension, NULL); 102 UserMayModifySettings(&extension, NULL);
103 info->is_app = extension.is_app(); 103 info->is_app = extension.is_app();
104 if (info->is_app) { 104 if (info->is_app) {
105 if (extension.is_packaged_app()) 105 if (extension.is_legacy_packaged_app())
106 info->type = ExtensionInfo::TYPE_LEGACY_PACKAGED_APP; 106 info->type = ExtensionInfo::TYPE_LEGACY_PACKAGED_APP;
107 else if (extension.is_hosted_app()) 107 else if (extension.is_hosted_app())
108 info->type = ExtensionInfo::TYPE_HOSTED_APP; 108 info->type = ExtensionInfo::TYPE_HOSTED_APP;
109 else 109 else
110 info->type = ExtensionInfo::TYPE_PACKAGED_APP; 110 info->type = ExtensionInfo::TYPE_PACKAGED_APP;
111 } else if (extension.is_theme()) { 111 } else if (extension.is_theme()) {
112 info->type = ExtensionInfo::TYPE_THEME; 112 info->type = ExtensionInfo::TYPE_THEME;
113 } else { 113 } else {
114 info->type = ExtensionInfo::TYPE_EXTENSION; 114 info->type = ExtensionInfo::TYPE_EXTENSION;
115 } 115 }
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 } 643 }
644 CHECK(extension); 644 CHECK(extension);
645 scoped_ptr<management::ExtensionInfo> info = CreateExtensionInfo( 645 scoped_ptr<management::ExtensionInfo> info = CreateExtensionInfo(
646 *extension, ExtensionSystem::Get(profile)); 646 *extension, ExtensionSystem::Get(profile));
647 args->Append(info->ToValue().release()); 647 args->Append(info->ToValue().release());
648 } 648 }
649 649
650 profile->GetExtensionEventRouter()->DispatchEventToRenderers( 650 profile->GetExtensionEventRouter()->DispatchEventToRenderers(
651 event_name, args.Pass(), NULL, GURL(), extensions::EventFilteringInfo()); 651 event_name, args.Pass(), NULL, GURL(), extensions::EventFilteringInfo());
652 } 652 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698