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

Side by Side Diff: chrome/browser/browser_about_handler.cc

Issue 19613: Merge 8764 - Add support for UA spoofing, and spoof Safari's UA string when l... (Closed) Base URL: svn://chrome-svn/chrome/branches/release_154.next/src/
Patch Set: Created 11 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/profile.cc » ('j') | chrome/browser/profile.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profile.cc » ('j') | chrome/browser/profile.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698