| 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
|
|
|