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

Unified Diff: chrome/browser/ui/webui/options2/options_ui2.cc

Issue 10266025: remove dead code in options page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/options2/options_ui2.h ('k') | chrome/browser/ui/webui/uber/uber_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/options_ui2.cc
diff --git a/chrome/browser/ui/webui/options2/options_ui2.cc b/chrome/browser/ui/webui/options2/options_ui2.cc
index 6acbd4097abaa03b63718be05b298c533158d19b..610d79080517314947da1e4556fe01181f7967d0 100644
--- a/chrome/browser/ui/webui/options2/options_ui2.cc
+++ b/chrome/browser/ui/webui/options2/options_ui2.cc
@@ -330,14 +330,6 @@ OptionsUI::~OptionsUI() {
handlers_[i]->Uninitialize();
}
-void OptionsUI::RenderViewCreated(RenderViewHost* render_view_host) {
- SetCommandLineString(render_view_host);
-}
-
-void OptionsUI::RenderViewReused(RenderViewHost* render_view_host) {
- SetCommandLineString(render_view_host);
-}
-
// static
void OptionsUI::ProcessAutocompleteSuggestions(
const AutocompleteResult& autocompleteResult,
@@ -400,18 +392,4 @@ void OptionsUI::AddOptionsPageUIHandler(DictionaryValue* localized_strings,
}
}
-void OptionsUI::SetCommandLineString(RenderViewHost* render_view_host) {
- std::string command_line_string;
-
-#if defined(OS_WIN)
- command_line_string =
- WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString());
-#else
- command_line_string =
- CommandLine::ForCurrentProcess()->GetCommandLineString();
-#endif
-
- render_view_host->SetWebUIProperty("commandLineString", command_line_string);
-}
-
} // namespace options2
« no previous file with comments | « chrome/browser/ui/webui/options2/options_ui2.h ('k') | chrome/browser/ui/webui/uber/uber_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698