OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser_about_handler.h" | 5 #include "chrome/browser/browser_about_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 451 |
452 return data; | 452 return data; |
453 } | 453 } |
454 | 454 |
455 #if defined(OS_LINUX) | 455 #if defined(OS_LINUX) |
456 std::string AboutLinuxProxyConfig() { | 456 std::string AboutLinuxProxyConfig() { |
457 std::string data; | 457 std::string data; |
458 data.append("<!DOCTYPE HTML>\n"); | 458 data.append("<!DOCTYPE HTML>\n"); |
459 data.append("<html><head><meta charset=\"utf-8\"><title>"); | 459 data.append("<html><head><meta charset=\"utf-8\"><title>"); |
460 data.append(l10n_util::GetStringUTF8(IDS_ABOUT_LINUX_PROXY_CONFIG_TITLE)); | 460 data.append(l10n_util::GetStringUTF8(IDS_ABOUT_LINUX_PROXY_CONFIG_TITLE)); |
461 data.append("</title></head><body>\n"); | 461 data.append("</title>"); |
462 data.append(l10n_util::GetStringFUTF8(IDS_ABOUT_LINUX_PROXY_CONFIG_BODY, | 462 data.append("<style>body { max-width: 70ex; padding: 2ex 5ex; }</style>"); |
463 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 463 data.append("</head><body>\n"); |
| 464 FilePath binary = CommandLine::ForCurrentProcess()->GetProgram(); |
| 465 data.append(l10n_util::GetStringFUTF8( |
| 466 IDS_ABOUT_LINUX_PROXY_CONFIG_BODY, |
| 467 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME), |
| 468 ASCIIToUTF16(binary.BaseName().value()))); |
464 data.append("</body></html>\n"); | 469 data.append("</body></html>\n"); |
465 return data; | 470 return data; |
466 } | 471 } |
467 #endif | 472 #endif |
468 | 473 |
469 std::string AboutTerms() { | 474 std::string AboutTerms() { |
470 static const std::string terms_html = | 475 static const std::string terms_html = |
471 ResourceBundle::GetSharedInstance().GetDataResource( | 476 ResourceBundle::GetSharedInstance().GetDataResource( |
472 IDR_TERMS_HTML); | 477 IDR_TERMS_HTML); |
473 | 478 |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 // Run the dialog. This will re-use the existing one if it's already up. | 993 // Run the dialog. This will re-use the existing one if it's already up. |
989 AboutIPCDialog::RunDialog(); | 994 AboutIPCDialog::RunDialog(); |
990 return true; | 995 return true; |
991 } | 996 } |
992 #endif | 997 #endif |
993 | 998 |
994 #endif // OFFICIAL_BUILD | 999 #endif // OFFICIAL_BUILD |
995 | 1000 |
996 return false; | 1001 return false; |
997 } | 1002 } |
OLD | NEW |