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

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

Issue 7529051: ntp: use web store as default mv tile instead of themes gallery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated thumbnail Created 9 years, 4 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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/webui/ntp/most_visited_handler.cc » ('j') | 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) 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/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 UserMetrics::RecordAction(UserMetricsAction("UpdateChrome")); 2062 UserMetrics::RecordAction(UserMetricsAction("UpdateChrome"));
2063 window_->ShowUpdateChromeDialog(); 2063 window_->ShowUpdateChromeDialog();
2064 } 2064 }
2065 2065
2066 void Browser::ShowHelpTab() { 2066 void Browser::ShowHelpTab() {
2067 GURL help_url(kHelpContentUrl); 2067 GURL help_url(kHelpContentUrl);
2068 GURL localized_help_url = google_util::AppendGoogleLocaleParam(help_url); 2068 GURL localized_help_url = google_util::AppendGoogleLocaleParam(help_url);
2069 ShowSingletonTab(localized_help_url); 2069 ShowSingletonTab(localized_help_url);
2070 } 2070 }
2071 2071
2072 void Browser::OpenThemeGalleryTabAndActivate() {
2073 AddSelectedTabWithURL(GURL(l10n_util::GetStringUTF8(IDS_THEMES_GALLERY_URL)),
2074 PageTransition::LINK);
2075 }
2076
2077 void Browser::OpenPrivacyDashboardTabAndActivate() { 2072 void Browser::OpenPrivacyDashboardTabAndActivate() {
2078 OpenURL(GURL(kPrivacyDashboardUrl), GURL(), 2073 OpenURL(GURL(kPrivacyDashboardUrl), GURL(),
2079 NEW_FOREGROUND_TAB, PageTransition::LINK); 2074 NEW_FOREGROUND_TAB, PageTransition::LINK);
2080 window_->Activate(); 2075 window_->Activate();
2081 } 2076 }
2082 2077
2083 void Browser::OpenAutofillHelpTabAndActivate() { 2078 void Browser::OpenAutofillHelpTabAndActivate() {
2084 GURL help_url = google_util::AppendGoogleLocaleParam(GURL(kAutofillHelpUrl)); 2079 GURL help_url = google_util::AppendGoogleLocaleParam(GURL(kAutofillHelpUrl));
2085 AddSelectedTabWithURL(help_url, PageTransition::LINK); 2080 AddSelectedTabWithURL(help_url, PageTransition::LINK);
2086 } 2081 }
(...skipping 2758 matching lines...) Expand 10 before | Expand all | Expand 10 after
4845 } 4840 }
4846 4841
4847 void Browser::ShowSyncSetup() { 4842 void Browser::ShowSyncSetup() {
4848 ProfileSyncService* service = 4843 ProfileSyncService* service =
4849 profile()->GetOriginalProfile()->GetProfileSyncService(); 4844 profile()->GetOriginalProfile()->GetProfileSyncService();
4850 if (service->HasSyncSetupCompleted()) 4845 if (service->HasSyncSetupCompleted())
4851 ShowOptionsTab(chrome::kSyncSetupSubPage); 4846 ShowOptionsTab(chrome::kSyncSetupSubPage);
4852 else 4847 else
4853 service->ShowLoginDialog(); 4848 service->ShowLoginDialog();
4854 } 4849 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/webui/ntp/most_visited_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698