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

Side by Side Diff: chrome/browser/ui/webui/about_ui.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 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/browser/ui/webui/about_ui.h" 5 #include "chrome/browser/ui/webui/about_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 return data; 828 return data;
829 } 829 }
830 830
831 #if defined(OS_LINUX) || defined(OS_OPENBSD) 831 #if defined(OS_LINUX) || defined(OS_OPENBSD)
832 std::string AboutLinuxProxyConfig() { 832 std::string AboutLinuxProxyConfig() {
833 std::string data; 833 std::string data;
834 AppendHeader(&data, 0, 834 AppendHeader(&data, 0,
835 l10n_util::GetStringUTF8(IDS_ABOUT_LINUX_PROXY_CONFIG_TITLE)); 835 l10n_util::GetStringUTF8(IDS_ABOUT_LINUX_PROXY_CONFIG_TITLE));
836 data.append("<style>body { max-width: 70ex; padding: 2ex 5ex; }</style>"); 836 data.append("<style>body { max-width: 70ex; padding: 2ex 5ex; }</style>");
837 AppendBody(&data); 837 AppendBody(&data);
838 base::FilePath binary = CommandLine::ForCurrentProcess()->GetProgram(); 838 base::FilePath binary = base::CommandLine::ForCurrentProcess()->GetProgram();
839 data.append(l10n_util::GetStringFUTF8( 839 data.append(l10n_util::GetStringFUTF8(
840 IDS_ABOUT_LINUX_PROXY_CONFIG_BODY, 840 IDS_ABOUT_LINUX_PROXY_CONFIG_BODY,
841 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME), 841 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
842 base::ASCIIToUTF16(binary.BaseName().value()))); 842 base::ASCIIToUTF16(binary.BaseName().value())));
843 AppendFooter(&data); 843 AppendFooter(&data);
844 return data; 844 return data;
845 } 845 }
846 846
847 void AboutSandboxRow(std::string* data, const std::string& prefix, int name_id, 847 void AboutSandboxRow(std::string* data, const std::string& prefix, int name_id,
848 bool good) { 848 bool good) {
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 Profile* profile = Profile::FromWebUI(web_ui); 1166 Profile* profile = Profile::FromWebUI(web_ui);
1167 1167
1168 #if defined(ENABLE_THEMES) 1168 #if defined(ENABLE_THEMES)
1169 // Set up the chrome://theme/ source. 1169 // Set up the chrome://theme/ source.
1170 ThemeSource* theme = new ThemeSource(profile); 1170 ThemeSource* theme = new ThemeSource(profile);
1171 content::URLDataSource::Add(profile, theme); 1171 content::URLDataSource::Add(profile, theme);
1172 #endif 1172 #endif
1173 1173
1174 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); 1174 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile));
1175 } 1175 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings.cc ('k') | chrome/browser/ui/webui/bidi_checker_web_ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698