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

Side by Side Diff: chrome/browser/browser.cc

Issue 2825027: AutoFill Help Link added on Mac (Closed)
Patch Set: Created 10 years, 5 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
« no previous file with comments | « chrome/browser/browser.h ('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/browser.h" 5 #include "chrome/browser/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 AddTabWithURL(help_url, GURL(), PageTransition::AUTO_BOOKMARK, 1809 AddTabWithURL(help_url, GURL(), PageTransition::AUTO_BOOKMARK,
1810 -1, Browser::ADD_SELECTED, NULL, std::string()); 1810 -1, Browser::ADD_SELECTED, NULL, std::string());
1811 } 1811 }
1812 1812
1813 void Browser::OpenThemeGalleryTabAndActivate() { 1813 void Browser::OpenThemeGalleryTabAndActivate() {
1814 OpenURL(GURL(l10n_util::GetStringUTF8(IDS_THEMES_GALLERY_URL)), 1814 OpenURL(GURL(l10n_util::GetStringUTF8(IDS_THEMES_GALLERY_URL)),
1815 GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK); 1815 GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
1816 window_->Activate(); 1816 window_->Activate();
1817 } 1817 }
1818 1818
1819 void Browser::OpenAutoFillHelpTabAndActivate() {
1820 OpenURL(GURL(l10n_util::GetStringUTF8(IDS_AUTOFILL_HELP_URL)),
1821 GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
1822 window_->Activate();
1823 }
1824
1819 #if defined(OS_CHROMEOS) 1825 #if defined(OS_CHROMEOS)
1820 void Browser::OpenSystemOptionsDialog() { 1826 void Browser::OpenSystemOptionsDialog() {
1821 UserMetrics::RecordAction(UserMetricsAction("OpenSystemOptionsDialog"), 1827 UserMetrics::RecordAction(UserMetricsAction("OpenSystemOptionsDialog"),
1822 profile_); 1828 profile_);
1823 ShowOptionsWindow(OPTIONS_PAGE_SYSTEM, OPTIONS_GROUP_NONE, profile_); 1829 ShowOptionsWindow(OPTIONS_PAGE_SYSTEM, OPTIONS_GROUP_NONE, profile_);
1824 } 1830 }
1825 1831
1826 void Browser::OpenInternetOptionsDialog() { 1832 void Browser::OpenInternetOptionsDialog() {
1827 UserMetrics::RecordAction(UserMetricsAction("OpenInternetOptionsDialog"), 1833 UserMetrics::RecordAction(UserMetricsAction("OpenInternetOptionsDialog"),
1828 profile_); 1834 profile_);
(...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after
3958 } 3964 }
3959 3965
3960 bool Browser::IsPinned(TabContents* source) { 3966 bool Browser::IsPinned(TabContents* source) {
3961 int index = tabstrip_model_.GetIndexOfTabContents(source); 3967 int index = tabstrip_model_.GetIndexOfTabContents(source);
3962 if (index == TabStripModel::kNoTab) { 3968 if (index == TabStripModel::kNoTab) {
3963 NOTREACHED() << "IsPinned called for tab not in our strip"; 3969 NOTREACHED() << "IsPinned called for tab not in our strip";
3964 return false; 3970 return false;
3965 } 3971 }
3966 return tabstrip_model_.IsTabPinned(index); 3972 return tabstrip_model_.IsTabPinned(index);
3967 } 3973 }
OLDNEW
« no previous file with comments | « chrome/browser/browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698