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

Side by Side Diff: chrome/browser/ui/webui/options/advanced_options_handler.cc

Issue 7096016: Remove JS dialog dependency from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more DEPS item removal Created 9 years, 6 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/ui/webui/options/advanced_options_handler.h" 5 #include "chrome/browser/ui/webui/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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 AdvancedOptionsUtilities::ShowManageSSLCertificates(web_ui_->tab_contents()); 459 AdvancedOptionsUtilities::ShowManageSSLCertificates(web_ui_->tab_contents());
460 } 460 }
461 #endif 461 #endif
462 462
463 #if !defined(OS_CHROMEOS) 463 #if !defined(OS_CHROMEOS)
464 void AdvancedOptionsHandler::ShowCloudPrintSetupDialog(const ListValue* args) { 464 void AdvancedOptionsHandler::ShowCloudPrintSetupDialog(const ListValue* args) {
465 UserMetricsRecordAction(UserMetricsAction("Options_EnableCloudPrintProxy")); 465 UserMetricsRecordAction(UserMetricsAction("Options_EnableCloudPrintProxy"));
466 cloud_print_setup_handler_.reset(new CloudPrintSetupHandler(this)); 466 cloud_print_setup_handler_.reset(new CloudPrintSetupHandler(this));
467 CloudPrintSetupFlow::OpenDialog( 467 CloudPrintSetupFlow::OpenDialog(
468 web_ui_->GetProfile(), cloud_print_setup_handler_->AsWeakPtr(), 468 web_ui_->GetProfile(), cloud_print_setup_handler_->AsWeakPtr(),
469 web_ui_->tab_contents()->GetMessageBoxRootWindow()); 469 web_ui_->tab_contents()->GetDialogRootWindow());
470 } 470 }
471 471
472 void AdvancedOptionsHandler::HandleDisableCloudPrintProxy( 472 void AdvancedOptionsHandler::HandleDisableCloudPrintProxy(
473 const ListValue* args) { 473 const ListValue* args) {
474 UserMetricsRecordAction(UserMetricsAction("Options_DisableCloudPrintProxy")); 474 UserMetricsRecordAction(UserMetricsAction("Options_DisableCloudPrintProxy"));
475 web_ui_->GetProfile()->GetCloudPrintProxyService()->DisableForUser(); 475 web_ui_->GetProfile()->GetCloudPrintProxyService()->DisableForUser();
476 } 476 }
477 477
478 void AdvancedOptionsHandler::ShowCloudPrintManagePage(const ListValue* args) { 478 void AdvancedOptionsHandler::ShowCloudPrintManagePage(const ListValue* args) {
479 UserMetricsRecordAction(UserMetricsAction("Options_ManageCloudPrinters")); 479 UserMetricsRecordAction(UserMetricsAction("Options_ManageCloudPrinters"));
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 web_ui_->CallJavascriptFunction( 633 web_ui_->CallJavascriptFunction(
634 "options.AdvancedOptions.SetUseSSL3CheckboxState", checked, disabled); 634 "options.AdvancedOptions.SetUseSSL3CheckboxState", checked, disabled);
635 } 635 }
636 { 636 {
637 FundamentalValue checked(tls1_enabled_.GetValue()); 637 FundamentalValue checked(tls1_enabled_.GetValue());
638 FundamentalValue disabled(tls1_enabled_.IsManaged()); 638 FundamentalValue disabled(tls1_enabled_.IsManaged());
639 web_ui_->CallJavascriptFunction( 639 web_ui_->CallJavascriptFunction(
640 "options.AdvancedOptions.SetUseTLS1CheckboxState", checked, disabled); 640 "options.AdvancedOptions.SetUseTLS1CheckboxState", checked, disabled);
641 } 641 }
642 } 642 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698