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

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

Issue 1016413004: [Extensions] Update Error Console UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 <vector> 7 #include <vector>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 source->AddString("packExtensionBrowseButton", 239 source->AddString("packExtensionBrowseButton",
240 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_DIALOG_BROWSE)); 240 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_DIALOG_BROWSE));
241 source->AddString("packExtensionProceedAnyway", 241 source->AddString("packExtensionProceedAnyway",
242 l10n_util::GetStringUTF16(IDS_EXTENSION_PROCEED_ANYWAY)); 242 l10n_util::GetStringUTF16(IDS_EXTENSION_PROCEED_ANYWAY));
243 source->AddString("packExtensionWarningTitle", 243 source->AddString("packExtensionWarningTitle",
244 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_WARNING_TITLE)); 244 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_WARNING_TITLE));
245 source->AddString("packExtensionErrorTitle", 245 source->AddString("packExtensionErrorTitle",
246 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_ERROR_TITLE)); 246 l10n_util::GetStringUTF16(IDS_EXTENSION_PACK_ERROR_TITLE));
247 247
248 // Extension Error and Extension Error Overlay: 248 // Extension Error and Extension Error Overlay:
249 source->AddString("extensionErrorHeading",
250 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_HEADING));
251 source->AddString("extensionErrorClearAll",
252 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_CLEAR_ALL));
253 source->AddString("extensionErrorNoErrors",
254 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_NO_ERRORS));
249 source->AddString( 255 source->AddString(
250 "extensionErrorsShowMore", 256 "extensionErrorNoErrorsCodeMessage",
251 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERRORS_SHOW_MORE)); 257 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_NO_ERRORS_CODE_MESSAGE));
252 source->AddString(
253 "extensionErrorsShowFewer",
254 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERRORS_SHOW_FEWER));
255 source->AddString(
256 "extensionErrorViewDetails",
257 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_VIEW_DETAILS));
258 source->AddString(
259 "extensionErrorViewManifest",
260 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_VIEW_MANIFEST));
261 source->AddString("extensionErrorOverlayDone", 258 source->AddString("extensionErrorOverlayDone",
262 l10n_util::GetStringUTF16(IDS_DONE)); 259 l10n_util::GetStringUTF16(IDS_DONE));
263 source->AddString( 260 source->AddString(
264 "extensionErrorOverlayContextUrl", 261 "extensionErrorOverlayContextUrl",
265 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_CONTEXT)); 262 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_CONTEXT));
266 source->AddString( 263 source->AddString(
267 "extensionErrorOverlayStackTrace", 264 "extensionErrorOverlayStackTrace",
268 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_STACK_TRACE)); 265 l10n_util::GetStringUTF16(IDS_EXTENSIONS_ERROR_STACK_TRACE));
269 source->AddString( 266 source->AddString(
270 "extensionErrorOverlayAnonymousFunction", 267 "extensionErrorOverlayAnonymousFunction",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 351
355 void ExtensionSettingsHandler::MaybeUpdateAfterNotification() { 352 void ExtensionSettingsHandler::MaybeUpdateAfterNotification() {
356 content::WebContents* contents = web_ui()->GetWebContents(); 353 content::WebContents* contents = web_ui()->GetWebContents();
357 if (contents && contents->GetRenderViewHost()) { 354 if (contents && contents->GetRenderViewHost()) {
358 web_ui()->CallJavascriptFunction( 355 web_ui()->CallJavascriptFunction(
359 "extensions.ExtensionSettings.onExtensionsChanged"); 356 "extensions.ExtensionSettings.onExtensionsChanged");
360 } 357 }
361 } 358 }
362 359
363 } // namespace extensions 360 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/resources/extensions/extensions.html ('k') | chrome/common/extensions/api/developer_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698