| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/file_version_info.h" | 10 #include "base/file_version_info.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 l10n_util::GetString(IDS_ABOUT_VERSION_COPYRIGHT)); | 263 l10n_util::GetString(IDS_ABOUT_VERSION_COPYRIGHT)); |
| 264 localized_strings.SetString(L"cl", version_info->last_change()); | 264 localized_strings.SetString(L"cl", version_info->last_change()); |
| 265 if (version_info->is_official_build()) { | 265 if (version_info->is_official_build()) { |
| 266 localized_strings.SetString(L"official", | 266 localized_strings.SetString(L"official", |
| 267 l10n_util::GetString(IDS_ABOUT_VERSION_OFFICIAL)); | 267 l10n_util::GetString(IDS_ABOUT_VERSION_OFFICIAL)); |
| 268 } else { | 268 } else { |
| 269 localized_strings.SetString(L"official", | 269 localized_strings.SetString(L"official", |
| 270 l10n_util::GetString(IDS_ABOUT_VERSION_UNOFFICIAL)); | 270 l10n_util::GetString(IDS_ABOUT_VERSION_UNOFFICIAL)); |
| 271 } | 271 } |
| 272 localized_strings.SetString(L"useragent", | 272 localized_strings.SetString(L"useragent", |
| 273 UTF8ToWide(webkit_glue::GetUserAgent())); | 273 UTF8ToWide(webkit_glue::GetUserAgent(GURL()))); |
| 274 | 274 |
| 275 static const StringPiece version_html( | 275 static const StringPiece version_html( |
| 276 ResourceBundle::GetSharedInstance().GetRawDataResource( | 276 ResourceBundle::GetSharedInstance().GetRawDataResource( |
| 277 IDR_ABOUT_VERSION_HTML)); | 277 IDR_ABOUT_VERSION_HTML)); |
| 278 | 278 |
| 279 return jstemplate_builder::GetTemplateHtml( | 279 return jstemplate_builder::GetTemplateHtml( |
| 280 version_html, &localized_strings, "t" /* template root node id */); | 280 version_html, &localized_strings, "t" /* template root node id */); |
| 281 } | 281 } |
| 282 | 282 |
| 283 // static | 283 // static |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 AboutSource* about_source = static_cast<AboutSource*>(source_); | 655 AboutSource* about_source = static_cast<AboutSource*>(source_); |
| 656 about_source->FinishDataRequest(template_html, request_id_); | 656 about_source->FinishDataRequest(template_html, request_id_); |
| 657 } | 657 } |
| 658 | 658 |
| 659 // static | 659 // static |
| 660 void BrowserAboutHandler::AboutMemory(AboutSource* source, int request_id) { | 660 void BrowserAboutHandler::AboutMemory(AboutSource* source, int request_id) { |
| 661 // The AboutMemoryHandler cleans itself up. | 661 // The AboutMemoryHandler cleans itself up. |
| 662 new AboutMemoryHandler(source, request_id); | 662 new AboutMemoryHandler(source, request_id); |
| 663 } | 663 } |
| 664 | 664 |
| OLD | NEW |