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

Side by Side Diff: chrome/common/localized_error.cc

Issue 1508853008: chrome: rename more wrench/Wrench occurrencies to appMenu/AppMenu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/localized_error.h" 5 #include "chrome/common/localized_error.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 error_code); 480 error_code);
481 DCHECK(map); 481 DCHECK(map);
482 return map; 482 return map;
483 } else { 483 } else {
484 NOTREACHED(); 484 NOTREACHED();
485 return NULL; 485 return NULL;
486 } 486 }
487 } 487 }
488 488
489 // Returns a dictionary containing the strings for the settings menu under the 489 // Returns a dictionary containing the strings for the settings menu under the
490 // wrench, and the advanced settings button. 490 // app menu, and the advanced settings button.
491 base::DictionaryValue* GetStandardMenuItemsText() { 491 base::DictionaryValue* GetStandardMenuItemsText() {
492 base::DictionaryValue* standard_menu_items_text = new base::DictionaryValue(); 492 base::DictionaryValue* standard_menu_items_text = new base::DictionaryValue();
493 standard_menu_items_text->SetString("settingsTitle", 493 standard_menu_items_text->SetString("settingsTitle",
494 l10n_util::GetStringUTF16(IDS_SETTINGS_TITLE)); 494 l10n_util::GetStringUTF16(IDS_SETTINGS_TITLE));
495 standard_menu_items_text->SetString("advancedTitle", 495 standard_menu_items_text->SetString("advancedTitle",
496 l10n_util::GetStringUTF16(IDS_SETTINGS_SHOW_ADVANCED_SETTINGS)); 496 l10n_util::GetStringUTF16(IDS_SETTINGS_SHOW_ADVANCED_SETTINGS));
497 return standard_menu_items_text; 497 return standard_menu_items_text;
498 } 498 }
499 499
500 // Gets the icon class for a given |error_domain| and |error_code|. 500 // Gets the icon class for a given |error_domain| and |error_code|.
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 return l10n_util::GetStringUTF16(IDS_ERRORPAGES_DETAILS_UNKNOWN); 932 return l10n_util::GetStringUTF16(IDS_ERRORPAGES_DETAILS_UNKNOWN);
933 } 933 }
934 934
935 bool LocalizedError::HasStrings(const std::string& error_domain, 935 bool LocalizedError::HasStrings(const std::string& error_domain,
936 int error_code) { 936 int error_code) {
937 // Whether or not the there are strings for an error does not depend on 937 // Whether or not the there are strings for an error does not depend on
938 // whether or not the page was be generated by a POST, so just claim it was 938 // whether or not the page was be generated by a POST, so just claim it was
939 // not. 939 // not.
940 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != NULL; 940 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != NULL;
941 } 941 }
OLDNEW
« chrome/browser/ui/cocoa/menu_button.h ('K') | « chrome/chrome_nibs.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698