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

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

Issue 6260001: Cleanup: Remove unneeded chrome/browser/ui/browser.h usage.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/download/download_shelf.h" 5 #include "chrome/browser/download/download_shelf.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "chrome/browser/dom_ui/downloads_ui.h" 9 #include "chrome/browser/dom_ui/downloads_ui.h"
10 #include "chrome/browser/download/download_item.h" 10 #include "chrome/browser/download/download_item.h"
11 #include "chrome/browser/download/download_item_model.h" 11 #include "chrome/browser/download/download_item_model.h"
12 #include "chrome/browser/download/download_manager.h" 12 #include "chrome/browser/download/download_manager.h"
13 #include "chrome/browser/download/download_util.h" 13 #include "chrome/browser/download/download_util.h"
14 #include "chrome/browser/metrics/user_metrics.h" 14 #include "chrome/browser/metrics/user_metrics.h"
15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
17 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
18 17
19 // DownloadShelfContextMenu ---------------------------------------------------- 18 // DownloadShelfContextMenu ----------------------------------------------------
20 19
21 DownloadShelfContextMenu::DownloadShelfContextMenu( 20 DownloadShelfContextMenu::DownloadShelfContextMenu(
22 BaseDownloadItemModel* download_model) 21 BaseDownloadItemModel* download_model)
23 : download_(download_model->download()), 22 : download_(download_model->download()),
24 model_(download_model) { 23 model_(download_model) {
25 } 24 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 ALWAYS_OPEN_TYPE, IDS_DOWNLOAD_MENU_ALWAYS_OPEN_TYPE); 152 ALWAYS_OPEN_TYPE, IDS_DOWNLOAD_MENU_ALWAYS_OPEN_TYPE);
154 finished_download_menu_model_->AddSeparator(); 153 finished_download_menu_model_->AddSeparator();
155 finished_download_menu_model_->AddItemWithStringId( 154 finished_download_menu_model_->AddItemWithStringId(
156 SHOW_IN_FOLDER, IDS_DOWNLOAD_MENU_SHOW); 155 SHOW_IN_FOLDER, IDS_DOWNLOAD_MENU_SHOW);
157 finished_download_menu_model_->AddSeparator(); 156 finished_download_menu_model_->AddSeparator();
158 finished_download_menu_model_->AddItemWithStringId( 157 finished_download_menu_model_->AddItemWithStringId(
159 CANCEL, IDS_DOWNLOAD_MENU_CANCEL); 158 CANCEL, IDS_DOWNLOAD_MENU_CANCEL);
160 159
161 return finished_download_menu_model_.get(); 160 return finished_download_menu_model_.get();
162 } 161 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/foreign_session_handler.cc ('k') | chrome/browser/extensions/app_background_page_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698