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

Unified Diff: chrome/browser/browser.cc

Issue 27106: Get save page working on posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
===================================================================
--- chrome/browser/browser.cc (revision 10273)
+++ chrome/browser/browser.cc (working copy)
@@ -743,6 +743,11 @@
window_->ShowBookmarkBubble(url, model->IsBookmarked(url));
}
+void Browser::SavePage() {
+ UserMetrics::RecordAction(L"SavePage", profile_);
+ GetSelectedTabContents()->AsWebContents()->OnSavePage();
+}
+
void Browser::ViewSource() {
UserMetrics::RecordAction(L"ViewSource", profile_);
@@ -766,11 +771,6 @@
GetSelectedTabContents()->AsWebContents()->PrintPreview();
}
-void Browser::SavePage() {
- UserMetrics::RecordAction(L"SavePage", profile_);
- GetSelectedTabContents()->AsWebContents()->OnSavePage();
-}
-
void Browser::ToggleEncodingAutoDetect() {
UserMetrics::RecordAction(L"AutoDetectChange", profile_);
encoding_auto_detect_.SetValue(!encoding_auto_detect_.GetValue());
@@ -1113,12 +1113,12 @@
case IDC_EXIT: Exit(); break;
// Page-related commands
+ case IDC_SAVE_PAGE: SavePage(); break;
case IDC_STAR: BookmarkCurrentPage(); break;
case IDC_VIEW_SOURCE: ViewSource(); break;
#if defined(OS_WIN)
case IDC_CLOSE_POPUPS: ClosePopups(); break;
case IDC_PRINT: Print(); break;
- case IDC_SAVE_PAGE: SavePage(); break;
case IDC_ENCODING_AUTO_DETECT: ToggleEncodingAutoDetect(); break;
case IDC_ENCODING_UTF8:
case IDC_ENCODING_UTF16LE:
« no previous file with comments | « chrome/browser/browser.h ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698