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

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

Issue 11413099: Bluetooth API Permission Dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix memory leak Created 8 years 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) 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/renderer/extensions/dispatcher.h" 5 #include "chrome/renderer/extensions/dispatcher.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); 653 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS);
654 source_map_.RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS); 654 source_map_.RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS);
655 source_map_.RegisterSource("mediaGalleries", 655 source_map_.RegisterSource("mediaGalleries",
656 IDR_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); 656 IDR_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS);
657 source_map_.RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS); 657 source_map_.RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS);
658 source_map_.RegisterSource("pageActions", 658 source_map_.RegisterSource("pageActions",
659 IDR_PAGE_ACTIONS_CUSTOM_BINDINGS_JS); 659 IDR_PAGE_ACTIONS_CUSTOM_BINDINGS_JS);
660 source_map_.RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS); 660 source_map_.RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS);
661 source_map_.RegisterSource("pageCapture", 661 source_map_.RegisterSource("pageCapture",
662 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS); 662 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS);
663 source_map_.RegisterSource("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS);
663 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); 664 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS);
664 source_map_.RegisterSource("storage", IDR_STORAGE_CUSTOM_BINDINGS_JS); 665 source_map_.RegisterSource("storage", IDR_STORAGE_CUSTOM_BINDINGS_JS);
665 source_map_.RegisterSource("syncFileSystem", 666 source_map_.RegisterSource("syncFileSystem",
666 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS); 667 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS);
667 source_map_.RegisterSource("systemIndicator", 668 source_map_.RegisterSource("systemIndicator",
668 IDR_SYSTEM_INDICATOR_CUSTOM_BINDINGS_JS); 669 IDR_SYSTEM_INDICATOR_CUSTOM_BINDINGS_JS);
669 source_map_.RegisterSource("tabCapture", IDR_TAB_CAPTURE_CUSTOM_BINDINGS_JS); 670 source_map_.RegisterSource("tabCapture", IDR_TAB_CAPTURE_CUSTOM_BINDINGS_JS);
670 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS); 671 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS);
671 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); 672 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS);
672 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); 673 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS);
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str()); 1131 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str());
1131 v8::ThrowException( 1132 v8::ThrowException(
1132 v8::Exception::Error(v8::String::New(error_msg.c_str()))); 1133 v8::Exception::Error(v8::String::New(error_msg.c_str())));
1133 return false; 1134 return false;
1134 } 1135 }
1135 1136
1136 return true; 1137 return true;
1137 } 1138 }
1138 1139
1139 } // namespace extensions 1140 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698