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

Side by Side Diff: chrome/browser/extensions/extension_disabled_ui.cc

Issue 510313002: Extensions-related fixups for scoped_refptr conversion operator removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/extensions/extension_disabled_ui.h" 5 #include "chrome/browser/extensions/extension_disabled_ui.h"
6 6
7 #include <bitset> 7 #include <bitset>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 return l10n_util::GetStringFUTF16(IDS_EXTENSION_DISABLED_ERROR_TITLE, 289 return l10n_util::GetStringFUTF16(IDS_EXTENSION_DISABLED_ERROR_TITLE,
290 base::UTF8ToUTF16(extension_->name())); 290 base::UTF8ToUTF16(extension_->name()));
291 } 291 }
292 } 292 }
293 293
294 std::vector<base::string16> 294 std::vector<base::string16>
295 ExtensionDisabledGlobalError::GetBubbleViewMessages() { 295 ExtensionDisabledGlobalError::GetBubbleViewMessages() {
296 std::vector<base::string16> messages; 296 std::vector<base::string16> messages;
297 std::vector<base::string16> permission_warnings = 297 std::vector<base::string16> permission_warnings =
298 extensions::PermissionMessageProvider::Get()->GetWarningMessages( 298 extensions::PermissionMessageProvider::Get()->GetWarningMessages(
299 extension_->permissions_data()->active_permissions(), 299 extension_->permissions_data()->active_permissions().get(),
300 extension_->GetType()); 300 extension_->GetType());
301 if (is_remote_install_) { 301 if (is_remote_install_) {
302 messages.push_back(l10n_util::GetStringFUTF16( 302 messages.push_back(l10n_util::GetStringFUTF16(
303 extension_->is_app() 303 extension_->is_app()
304 ? IDS_APP_DISABLED_REMOTE_INSTALL_ERROR_LABEL 304 ? IDS_APP_DISABLED_REMOTE_INSTALL_ERROR_LABEL
305 : IDS_EXTENSION_DISABLED_REMOTE_INSTALL_ERROR_LABEL, 305 : IDS_EXTENSION_DISABLED_REMOTE_INSTALL_ERROR_LABEL,
306 base::UTF8ToUTF16(extension_->name()))); 306 base::UTF8ToUTF16(extension_->name())));
307 if (!permission_warnings.empty()) 307 if (!permission_warnings.empty())
308 messages.push_back( 308 messages.push_back(
309 l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_WILL_HAVE_ACCESS_TO)); 309 l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_WILL_HAVE_ACCESS_TO));
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 void ShowExtensionDisabledDialog(ExtensionService* service, 439 void ShowExtensionDisabledDialog(ExtensionService* service,
440 content::WebContents* web_contents, 440 content::WebContents* web_contents,
441 const Extension* extension) { 441 const Extension* extension) {
442 scoped_ptr<ExtensionInstallPrompt> install_ui( 442 scoped_ptr<ExtensionInstallPrompt> install_ui(
443 new ExtensionInstallPrompt(web_contents)); 443 new ExtensionInstallPrompt(web_contents));
444 // This object manages its own lifetime. 444 // This object manages its own lifetime.
445 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension); 445 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension);
446 } 446 }
447 447
448 } // namespace extensions 448 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_install_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698