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

Side by Side Diff: chrome/browser/ui/views/options/general_page_view.cc

Issue 5601003: Localize instant string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/instant_confirm_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/options/general_page_view.h" 5 #include "chrome/browser/views/options/general_page_view.h"
6 6
7 #include "app/combobox_model.h" 7 #include "app/combobox_model.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 instant_checkbox_->SetChecked(prefs->GetBoolean(prefs::kInstantEnabled)); 446 instant_checkbox_->SetChecked(prefs->GetBoolean(prefs::kInstantEnabled));
447 } 447 }
448 448
449 void GeneralPageView::HighlightGroup(OptionsGroup highlight_group) { 449 void GeneralPageView::HighlightGroup(OptionsGroup highlight_group) {
450 if (highlight_group == OPTIONS_GROUP_DEFAULT_SEARCH) 450 if (highlight_group == OPTIONS_GROUP_DEFAULT_SEARCH)
451 default_search_group_->SetHighlighted(true); 451 default_search_group_->SetHighlighted(true);
452 } 452 }
453 453
454 void GeneralPageView::LinkActivated(views::Link* source, int event_flags) { 454 void GeneralPageView::LinkActivated(views::Link* source, int event_flags) {
455 DCHECK(source == instant_link_); 455 DCHECK(source == instant_link_);
456 browser::ShowOptionsURL(profile(), 456 browser::ShowOptionsURL(profile(), browser::InstantLearnMoreURL());
457 GURL(browser::kInstantLearnMoreURL));
458 } 457 }
459 458
460 /////////////////////////////////////////////////////////////////////////////// 459 ///////////////////////////////////////////////////////////////////////////////
461 // GeneralPageView, private: 460 // GeneralPageView, private:
462 461
463 void GeneralPageView::SetDefaultBrowserUIState( 462 void GeneralPageView::SetDefaultBrowserUIState(
464 ShellIntegration::DefaultBrowserUIState state) { 463 ShellIntegration::DefaultBrowserUIState state) {
465 bool button_enabled = state == ShellIntegration::STATE_NOT_DEFAULT; 464 bool button_enabled = state == ShellIntegration::STATE_NOT_DEFAULT;
466 default_browser_use_as_default_button_->SetEnabled(button_enabled); 465 default_browser_use_as_default_button_->SetEnabled(button_enabled);
467 default_browser_use_as_default_button_->SetNeedElevation(true); 466 default_browser_use_as_default_button_->SetNeedElevation(true);
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 } 874 }
876 homepage_use_url_textfield_->SetEnabled(enabled); 875 homepage_use_url_textfield_->SetEnabled(enabled);
877 homepage_use_url_textfield_->SetReadOnly(!enabled); 876 homepage_use_url_textfield_->SetReadOnly(!enabled);
878 } 877 }
879 878
880 void GeneralPageView::SetDefaultSearchProvider() { 879 void GeneralPageView::SetDefaultSearchProvider() {
881 const int index = default_search_engine_combobox_->selected_item(); 880 const int index = default_search_engine_combobox_->selected_item();
882 default_search_engines_model_->model()->SetDefaultSearchProvider( 881 default_search_engines_model_->model()->SetDefaultSearchProvider(
883 default_search_engines_model_->GetTemplateURLAt(index)); 882 default_search_engines_model_->GetTemplateURLAt(index));
884 } 883 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/instant_confirm_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698