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

Side by Side Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 2583743002: Add mac-only "Set Up Automatic Updates..." button to the new about page. (Closed)
Patch Set: add back nullptr check Created 4 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/help/help_handler.h" 5 #include "chrome/browser/ui/webui/help/help_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 base::FundamentalValue(false)); 683 base::FundamentalValue(false));
684 } 684 }
685 #endif // defined(OS_CHROMEOS) 685 #endif // defined(OS_CHROMEOS)
686 } 686 }
687 687
688 #if defined(OS_MACOSX) 688 #if defined(OS_MACOSX)
689 void HelpHandler::SetPromotionState(VersionUpdater::PromotionState state) { 689 void HelpHandler::SetPromotionState(VersionUpdater::PromotionState state) {
690 std::string state_str; 690 std::string state_str;
691 switch (state) { 691 switch (state) {
692 case VersionUpdater::PROMOTE_HIDDEN: 692 case VersionUpdater::PROMOTE_HIDDEN:
693 case VersionUpdater::PROMOTED:
693 state_str = "hidden"; 694 state_str = "hidden";
694 break; 695 break;
695 case VersionUpdater::PROMOTE_ENABLED: 696 case VersionUpdater::PROMOTE_ENABLED:
696 state_str = "enabled"; 697 state_str = "enabled";
697 break; 698 break;
698 case VersionUpdater::PROMOTE_DISABLED: 699 case VersionUpdater::PROMOTE_DISABLED:
699 state_str = "disabled"; 700 state_str = "disabled";
700 break; 701 break;
701 } 702 }
702 703
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 base::StringValue("")); 772 base::StringValue(""));
772 } else { 773 } else {
773 base::string16 message = GetEolMessage(status); 774 base::string16 message = GetEolMessage(status);
774 web_ui()->CallJavascriptFunctionUnsafe( 775 web_ui()->CallJavascriptFunctionUnsafe(
775 "help.HelpPage.updateEolMessage", base::StringValue("device_endoflife"), 776 "help.HelpPage.updateEolMessage", base::StringValue("device_endoflife"),
776 base::StringValue(message)); 777 base::StringValue(message));
777 } 778 }
778 } 779 }
779 780
780 #endif // defined(OS_CHROMEOS) 781 #endif // defined(OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698