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

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: translateable=false 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
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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(),
457 GURL(browser::kInstantLearnMoreURL)); 457 GURL(browser::InstantLearnMoreURL()));
458 } 458 }
459 459
460 /////////////////////////////////////////////////////////////////////////////// 460 ///////////////////////////////////////////////////////////////////////////////
461 // GeneralPageView, private: 461 // GeneralPageView, private:
462 462
463 void GeneralPageView::SetDefaultBrowserUIState( 463 void GeneralPageView::SetDefaultBrowserUIState(
464 ShellIntegration::DefaultBrowserUIState state) { 464 ShellIntegration::DefaultBrowserUIState state) {
465 bool button_enabled = state == ShellIntegration::STATE_NOT_DEFAULT; 465 bool button_enabled = state == ShellIntegration::STATE_NOT_DEFAULT;
466 default_browser_use_as_default_button_->SetEnabled(button_enabled); 466 default_browser_use_as_default_button_->SetEnabled(button_enabled);
467 default_browser_use_as_default_button_->SetNeedElevation(true); 467 default_browser_use_as_default_button_->SetNeedElevation(true);
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 } 875 }
876 homepage_use_url_textfield_->SetEnabled(enabled); 876 homepage_use_url_textfield_->SetEnabled(enabled);
877 homepage_use_url_textfield_->SetReadOnly(!enabled); 877 homepage_use_url_textfield_->SetReadOnly(!enabled);
878 } 878 }
879 879
880 void GeneralPageView::SetDefaultSearchProvider() { 880 void GeneralPageView::SetDefaultSearchProvider() {
881 const int index = default_search_engine_combobox_->selected_item(); 881 const int index = default_search_engine_combobox_->selected_item();
882 default_search_engines_model_->model()->SetDefaultSearchProvider( 882 default_search_engines_model_->model()->SetDefaultSearchProvider(
883 default_search_engines_model_->GetTemplateURLAt(index)); 883 default_search_engines_model_->GetTemplateURLAt(index));
884 } 884 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698