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

Side by Side Diff: chrome/browser/dom_ui/options/advanced_options_handler.cc

Issue 6541027: Small: Cloud print UI options fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments; clean up Created 9 years, 10 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/dom_ui/options/advanced_options_handler.h" 5 #include "chrome/browser/dom_ui/options/advanced_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 #endif 177 #endif
178 }; 178 };
179 179
180 RegisterStrings(localized_strings, resources, arraysize(resources)); 180 RegisterStrings(localized_strings, resources, arraysize(resources));
181 RegisterTitle(localized_strings, "advancedPage", 181 RegisterTitle(localized_strings, "advancedPage",
182 IDS_OPTIONS_ADVANCED_TAB_LABEL); 182 IDS_OPTIONS_ADVANCED_TAB_LABEL);
183 183
184 localized_strings->SetString("privacyLearnMoreURL", 184 localized_strings->SetString("privacyLearnMoreURL",
185 google_util::AppendGoogleLocaleParam( 185 google_util::AppendGoogleLocaleParam(
186 GURL(chrome::kPrivacyLearnMoreURL)).spec()); 186 GURL(chrome::kPrivacyLearnMoreURL)).spec());
187 #if !defined(OS_CHROMEOS)
188 // Add the cloud print proxy management ui section if it's been runtime
189 // enabled.
190 localized_strings->SetBoolean("enable-cloud-print-proxy",
191 cloud_print_proxy_ui_enabled_);
192 #endif
193 } 187 }
194 188
195 void AdvancedOptionsHandler::Initialize() { 189 void AdvancedOptionsHandler::Initialize() {
196 DCHECK(web_ui_); 190 DCHECK(web_ui_);
197 SetupMetricsReportingCheckbox(); 191 SetupMetricsReportingCheckbox();
198 SetupMetricsReportingSettingVisibility(); 192 SetupMetricsReportingSettingVisibility();
199 SetupFontSizeLabel(); 193 SetupFontSizeLabel();
200 SetupDownloadLocationPath(); 194 SetupDownloadLocationPath();
201 SetupPromptForDownload(); 195 SetupPromptForDownload();
202 SetupAutoOpenFileTypesDisabledAttribute(); 196 SetupAutoOpenFileTypesDisabledAttribute();
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 FundamentalValue useSSL3Value(useSSL3Setting); 650 FundamentalValue useSSL3Value(useSSL3Setting);
657 web_ui_->CallJavascriptFunction( 651 web_ui_->CallJavascriptFunction(
658 L"options.AdvancedOptions.SetUseSSL3CheckboxState", 652 L"options.AdvancedOptions.SetUseSSL3CheckboxState",
659 useSSL3Value, disabledValue); 653 useSSL3Value, disabledValue);
660 FundamentalValue useTLS1Value(useTLS1Setting); 654 FundamentalValue useTLS1Value(useTLS1Setting);
661 web_ui_->CallJavascriptFunction( 655 web_ui_->CallJavascriptFunction(
662 L"options.AdvancedOptions.SetUseTLS1CheckboxState", 656 L"options.AdvancedOptions.SetUseTLS1CheckboxState",
663 useTLS1Value, disabledValue); 657 useTLS1Value, disabledValue);
664 } 658 }
665 #endif 659 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698