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

Side by Side Diff: chrome/common/extensions/extension.cc

Issue 11428116: First few API implementation of AppsDebuggerPrivate. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixing build on windows Created 8 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 "chrome/common/extensions/extension.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 } 1295 }
1296 1296
1297 bool Extension::is_hosted_app() const { 1297 bool Extension::is_hosted_app() const {
1298 return manifest()->is_hosted_app(); 1298 return manifest()->is_hosted_app();
1299 } 1299 }
1300 1300
1301 bool Extension::is_legacy_packaged_app() const { 1301 bool Extension::is_legacy_packaged_app() const {
1302 return manifest()->is_legacy_packaged_app(); 1302 return manifest()->is_legacy_packaged_app();
1303 } 1303 }
1304 1304
1305 bool Extension::is_extension() const {
1306 return manifest()->is_extension();
1307 }
1308
1305 bool Extension::can_be_incognito_enabled() const { 1309 bool Extension::can_be_incognito_enabled() const {
1306 return !is_platform_app(); 1310 return !is_platform_app();
1307 } 1311 }
1308 1312
1309 bool Extension::is_theme() const { 1313 bool Extension::is_theme() const {
1310 return manifest()->is_theme(); 1314 return manifest()->is_theme();
1311 } 1315 }
1312 1316
1313 GURL Extension::GetBackgroundURL() const { 1317 GURL Extension::GetBackgroundURL() const {
1314 if (background_scripts_.empty()) 1318 if (background_scripts_.empty())
(...skipping 2859 matching lines...) Expand 10 before | Expand all | Expand 10 after
4174 4178
4175 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 4179 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
4176 const Extension* extension, 4180 const Extension* extension,
4177 const PermissionSet* permissions, 4181 const PermissionSet* permissions,
4178 Reason reason) 4182 Reason reason)
4179 : reason(reason), 4183 : reason(reason),
4180 extension(extension), 4184 extension(extension),
4181 permissions(permissions) {} 4185 permissions(permissions) {}
4182 4186
4183 } // namespace extensions 4187 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698