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

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_settings_handler.cc

Issue 540113002: Reorder "action links" on chrome://extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_remove_install_from_webstore_flag
Patch Set: Created 6 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 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" 5 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h"
6 6
7 #include "apps/app_load_service.h" 7 #include "apps/app_load_service.h"
8 #include "apps/saved_files_service.h" 8 #include "apps/saved_files_service.h"
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 extension_data->SetBoolean("incognitoCanBeEnabled", 262 extension_data->SetBoolean("incognitoCanBeEnabled",
263 extension->can_be_incognito_enabled()); 263 extension->can_be_incognito_enabled());
264 extension_data->SetBoolean("wantsFileAccess", extension->wants_file_access()); 264 extension_data->SetBoolean("wantsFileAccess", extension->wants_file_access());
265 extension_data->SetBoolean("allowFileAccess", 265 extension_data->SetBoolean("allowFileAccess",
266 util::AllowFileAccess(extension->id(), extension_service_->profile())); 266 util::AllowFileAccess(extension->id(), extension_service_->profile()));
267 extension_data->SetBoolean("allow_reload", 267 extension_data->SetBoolean("allow_reload",
268 Manifest::IsUnpackedLocation(extension->location())); 268 Manifest::IsUnpackedLocation(extension->location()));
269 extension_data->SetBoolean("is_hosted_app", extension->is_hosted_app()); 269 extension_data->SetBoolean("is_hosted_app", extension->is_hosted_app());
270 extension_data->SetBoolean("is_platform_app", extension->is_platform_app()); 270 extension_data->SetBoolean("is_platform_app", extension->is_platform_app());
271 extension_data->SetBoolean("homepageProvided", 271 extension_data->SetBoolean("homepageProvided",
272 ManifestURL::GetHomepageURL(extension).is_valid()); 272 ManifestURL::SpecifiedHomepageURL(extension));
273 273
274 // Add dependent extensions. 274 // Add dependent extensions.
275 base::ListValue* dependents_list = new base::ListValue; 275 base::ListValue* dependents_list = new base::ListValue;
276 if (extension->is_shared_module()) { 276 if (extension->is_shared_module()) {
277 scoped_ptr<ExtensionSet> dependent_extensions = 277 scoped_ptr<ExtensionSet> dependent_extensions =
278 extension_service_->shared_module_service()->GetDependentExtensions( 278 extension_service_->shared_module_service()->GetDependentExtensions(
279 extension); 279 extension);
280 for (ExtensionSet::const_iterator i = dependent_extensions->begin(); 280 for (ExtensionSet::const_iterator i = dependent_extensions->begin();
281 i != dependent_extensions->end(); 281 i != dependent_extensions->end();
282 i++) { 282 i++) {
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 extension_service_->EnableExtension(extension_id); 1415 extension_service_->EnableExtension(extension_id);
1416 } else { 1416 } else {
1417 ExtensionErrorReporter::GetInstance()->ReportError( 1417 ExtensionErrorReporter::GetInstance()->ReportError(
1418 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')), 1418 base::UTF8ToUTF16(JoinString(requirement_errors, ' ')),
1419 true); // Be noisy. 1419 true); // Be noisy.
1420 } 1420 }
1421 requirements_checker_.reset(); 1421 requirements_checker_.reset();
1422 } 1422 }
1423 1423
1424 } // namespace extensions 1424 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/resources/extensions/extensions.html ('k') | chrome/common/extensions/manifest_url_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698