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

Side by Side Diff: chrome/renderer/extensions/extension_process_bindings.cc

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (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
« no previous file with comments | « chrome/profile_import/profile_import_main.cc ('k') | chrome/renderer/search_extension.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer/extensions/extension_process_bindings.h" 5 #include "chrome/renderer/extensions/extension_process_bindings.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/json/json_reader.h" 13 #include "base/json/json_reader.h"
14 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
15 #include "base/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "chrome/common/chrome_switches.h"
18 #include "chrome/common/extensions/extension.h" 17 #include "chrome/common/extensions/extension.h"
19 #include "chrome/common/extensions/extension_constants.h" 18 #include "chrome/common/extensions/extension_constants.h"
20 #include "chrome/common/extensions/url_pattern.h" 19 #include "chrome/common/extensions/url_pattern.h"
21 #include "chrome/common/render_messages.h" 20 #include "chrome/common/render_messages.h"
22 #include "chrome/common/render_messages_params.h" 21 #include "chrome/common/render_messages_params.h"
23 #include "chrome/common/url_constants.h" 22 #include "chrome/common/url_constants.h"
24 #include "chrome/renderer/extensions/bindings_utils.h" 23 #include "chrome/renderer/extensions/bindings_utils.h"
25 #include "chrome/renderer/extensions/event_bindings.h" 24 #include "chrome/renderer/extensions/event_bindings.h"
26 #include "chrome/renderer/extensions/extension_renderer_info.h" 25 #include "chrome/renderer/extensions/extension_renderer_info.h"
27 #include "chrome/renderer/extensions/js_only_v8_extensions.h" 26 #include "chrome/renderer/extensions/js_only_v8_extensions.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 ExtensionProcessBindings::ThrowPermissionDeniedException( 669 ExtensionProcessBindings::ThrowPermissionDeniedException(
671 const std::string& function_name) { 670 const std::string& function_name) {
672 static const char kMessage[] = 671 static const char kMessage[] =
673 "You do not have permission to use '%s'. Be sure to declare" 672 "You do not have permission to use '%s'. Be sure to declare"
674 " in your manifest what permissions you need."; 673 " in your manifest what permissions you need.";
675 std::string error_msg = StringPrintf(kMessage, function_name.c_str()); 674 std::string error_msg = StringPrintf(kMessage, function_name.c_str());
676 675
677 return v8::ThrowException(v8::Exception::Error( 676 return v8::ThrowException(v8::Exception::Error(
678 v8::String::New(error_msg.c_str()))); 677 v8::String::New(error_msg.c_str())));
679 } 678 }
680
OLDNEW
« no previous file with comments | « chrome/profile_import/profile_import_main.cc ('k') | chrome/renderer/search_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698