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

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

Issue 2826: Move the download code to new directories: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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/profile.cc ('k') | chrome/browser/resource_dispatcher_host.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/render_view_context_menu_controller.h" 5 #include "chrome/browser/render_view_context_menu_controller.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/app/chrome_dll_resource.h" 10 #include "chrome/app/chrome_dll_resource.h"
11 #include "chrome/common/chrome_paths.h" 11 #include "chrome/common/chrome_paths.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/common/pref_service.h" 13 #include "chrome/common/pref_service.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/download_manager.h" 15 #include "chrome/browser/download/download_manager.h"
16 #include "chrome/browser/navigation_controller.h" 16 #include "chrome/browser/navigation_controller.h"
17 #include "chrome/browser/navigation_entry.h" 17 #include "chrome/browser/navigation_entry.h"
18 #include "chrome/browser/profile.h" 18 #include "chrome/browser/profile.h"
19 #include "chrome/browser/save_package.h" 19 #include "chrome/browser/save_package.h"
20 #include "chrome/browser/template_url_model.h" 20 #include "chrome/browser/template_url_model.h"
21 #include "chrome/browser/web_contents.h" 21 #include "chrome/browser/web_contents.h"
22 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
23 #include "chrome/common/clipboard_service.h" 23 #include "chrome/common/clipboard_service.h"
24 #include "chrome/common/l10n_util.h" 24 #include "chrome/common/l10n_util.h"
25 #include "chrome/common/win_util.h" 25 #include "chrome/common/win_util.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 if (id == IDS_CONTENT_CONTEXT_INSPECTELEMENT) { 407 if (id == IDS_CONTENT_CONTEXT_INSPECTELEMENT) {
408 PrefService* prefs = source_web_contents_->profile()->GetPrefs(); 408 PrefService* prefs = source_web_contents_->profile()->GetPrefs();
409 if (!prefs->GetBoolean(prefs::kWebKitJavascriptEnabled) || 409 if (!prefs->GetBoolean(prefs::kWebKitJavascriptEnabled) ||
410 command_line.HasSwitch(switches::kDisableJavaScript)) 410 command_line.HasSwitch(switches::kDisableJavaScript))
411 return false; 411 return false;
412 } 412 }
413 413
414 return true; 414 return true;
415 } 415 }
416 416
OLDNEW
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/browser/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698