OLD | NEW |
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/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 2238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2249 void Browser::OpenUpdateChromeDialog() { | 2249 void Browser::OpenUpdateChromeDialog() { |
2250 content::RecordAction(UserMetricsAction("UpdateChrome")); | 2250 content::RecordAction(UserMetricsAction("UpdateChrome")); |
2251 window_->ShowUpdateChromeDialog(); | 2251 window_->ShowUpdateChromeDialog(); |
2252 } | 2252 } |
2253 | 2253 |
2254 void Browser::ShowHelpTab() { | 2254 void Browser::ShowHelpTab() { |
2255 content::RecordAction(UserMetricsAction("ShowHelpTab")); | 2255 content::RecordAction(UserMetricsAction("ShowHelpTab")); |
2256 ShowSingletonTab(GURL(chrome::kChromeHelpURL)); | 2256 ShowSingletonTab(GURL(chrome::kChromeHelpURL)); |
2257 } | 2257 } |
2258 | 2258 |
2259 void Browser::OpenAutofillHelpTabAndActivate() { | |
2260 AddSelectedTabWithURL(GURL(chrome::kAutofillHelpURL), | |
2261 content::PAGE_TRANSITION_LINK); | |
2262 } | |
2263 | |
2264 void Browser::OpenPrivacyDashboardTabAndActivate() { | 2259 void Browser::OpenPrivacyDashboardTabAndActivate() { |
2265 OpenURL(OpenURLParams( | 2260 OpenURL(OpenURLParams( |
2266 GURL(kPrivacyDashboardUrl), Referrer(), | 2261 GURL(kPrivacyDashboardUrl), Referrer(), |
2267 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); | 2262 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); |
2268 window_->Activate(); | 2263 window_->Activate(); |
2269 } | 2264 } |
2270 | 2265 |
2271 void Browser::OpenSearchEngineOptionsDialog() { | 2266 void Browser::OpenSearchEngineOptionsDialog() { |
2272 content::RecordAction(UserMetricsAction("EditSearchEngines")); | 2267 content::RecordAction(UserMetricsAction("EditSearchEngines")); |
2273 ShowOptionsTab(chrome::kSearchEnginesSubPage); | 2268 ShowOptionsTab(chrome::kSearchEnginesSubPage); |
(...skipping 3151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5425 if (contents && !allow_js_access) { | 5420 if (contents && !allow_js_access) { |
5426 contents->web_contents()->GetController().LoadURL( | 5421 contents->web_contents()->GetController().LoadURL( |
5427 target_url, | 5422 target_url, |
5428 content::Referrer(), | 5423 content::Referrer(), |
5429 content::PAGE_TRANSITION_LINK, | 5424 content::PAGE_TRANSITION_LINK, |
5430 std::string()); // No extra headers. | 5425 std::string()); // No extra headers. |
5431 } | 5426 } |
5432 | 5427 |
5433 return contents != NULL; | 5428 return contents != NULL; |
5434 } | 5429 } |
OLD | NEW |