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

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

Issue 113403006: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
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_error_ui.h" 5 #include "chrome/browser/extensions/extension_error_ui.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 30 matching lines...) Expand all
41 CHECK(extension_template_message_id); 41 CHECK(extension_template_message_id);
42 CHECK(app_template_message_id); 42 CHECK(app_template_message_id);
43 base::string16 message; 43 base::string16 message;
44 44
45 for (ExtensionIdSet::const_iterator iter = extensions->begin(); 45 for (ExtensionIdSet::const_iterator iter = extensions->begin();
46 iter != extensions->end(); ++iter) { 46 iter != extensions->end(); ++iter) {
47 const extensions::Extension* e = 47 const extensions::Extension* e =
48 extension_service_->GetInstalledExtension(*iter); 48 extension_service_->GetInstalledExtension(*iter);
49 message += l10n_util::GetStringFUTF16( 49 message += l10n_util::GetStringFUTF16(
50 e->is_app() ? app_template_message_id : extension_template_message_id, 50 e->is_app() ? app_template_message_id : extension_template_message_id,
51 base::UTF8ToUTF16(e->name())) + char16('\n'); 51 base::UTF8ToUTF16(e->name())) + base::char16('\n');
52 } 52 }
53 return message; 53 return message;
54 } 54 }
55 55
56 base::string16 ExtensionErrorUI::GenerateMessage() { 56 base::string16 ExtensionErrorUI::GenerateMessage() {
57 return GenerateMessageSection(external_extension_ids_.get(), 57 return GenerateMessageSection(external_extension_ids_.get(),
58 IDS_EXTENSION_ALERT_ITEM_EXTERNAL, 58 IDS_EXTENSION_ALERT_ITEM_EXTERNAL,
59 IDS_APP_ALERT_ITEM_EXTERNAL) + 59 IDS_APP_ALERT_ITEM_EXTERNAL) +
60 GenerateMessageSection(blacklisted_extension_ids_.get(), 60 GenerateMessageSection(blacklisted_extension_ids_.get(),
61 IDS_EXTENSION_ALERT_ITEM_BLACKLISTED, 61 IDS_EXTENSION_ALERT_ITEM_BLACKLISTED,
(...skipping 26 matching lines...) Expand all
88 extension_service_->HandleExtensionAlertClosed(); 88 extension_service_->HandleExtensionAlertClosed();
89 } 89 }
90 90
91 void ExtensionErrorUI::BubbleViewAcceptButtonPressed() { 91 void ExtensionErrorUI::BubbleViewAcceptButtonPressed() {
92 extension_service_->HandleExtensionAlertAccept(); 92 extension_service_->HandleExtensionAlertAccept();
93 } 93 }
94 94
95 void ExtensionErrorUI::BubbleViewCancelButtonPressed() { 95 void ExtensionErrorUI::BubbleViewCancelButtonPressed() {
96 extension_service_->HandleExtensionAlertDetails(); 96 extension_service_->HandleExtensionAlertDetails();
97 } 97 }
OLDNEW
« no previous file with comments | « chrome/browser/drive/drive_api_util.cc ('k') | chrome/browser/history/in_memory_url_index_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698