| 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/download/download_shelf_context_menu.h" |    5 #include "chrome/browser/download/download_shelf_context_menu.h" | 
|    6  |    6  | 
 |    7 #include "build/build_config.h" | 
|    7 #include "chrome/browser/download/download_item_model.h" |    8 #include "chrome/browser/download/download_item_model.h" | 
|    8 #include "chrome/grit/generated_resources.h" |    9 #include "chrome/grit/generated_resources.h" | 
|    9 #include "content/public/common/content_features.h" |   10 #include "content/public/common/content_features.h" | 
|   10 #include "extensions/common/extension.h" |   11 #include "extensions/common/extension.h" | 
|   11 #include "ui/base/l10n/l10n_util.h" |   12 #include "ui/base/l10n/l10n_util.h" | 
|   12  |   13  | 
|   13 #if defined(OS_WIN) |   14 #if defined(OS_WIN) | 
|   14 #include "chrome/browser/ui/pdf/adobe_reader_info_win.h" |   15 #include "chrome/browser/ui/pdf/adobe_reader_info_win.h" | 
|   15 #endif |   16 #endif | 
|   16  |   17  | 
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  317   if (malicious_download_menu_model_) |  318   if (malicious_download_menu_model_) | 
|  318     return malicious_download_menu_model_.get(); |  319     return malicious_download_menu_model_.get(); | 
|  319  |  320  | 
|  320   malicious_download_menu_model_.reset(new ui::SimpleMenuModel(this)); |  321   malicious_download_menu_model_.reset(new ui::SimpleMenuModel(this)); | 
|  321   malicious_download_menu_model_->AddItem( |  322   malicious_download_menu_model_->AddItem( | 
|  322       DownloadCommands::LEARN_MORE_SCANNING, |  323       DownloadCommands::LEARN_MORE_SCANNING, | 
|  323       GetLabelForCommandId(DownloadCommands::LEARN_MORE_SCANNING)); |  324       GetLabelForCommandId(DownloadCommands::LEARN_MORE_SCANNING)); | 
|  324  |  325  | 
|  325   return malicious_download_menu_model_.get(); |  326   return malicious_download_menu_model_.get(); | 
|  326 } |  327 } | 
| OLD | NEW |