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

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

Issue 12313115: Take notification API out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed one pathname. Created 7 years, 9 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) 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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 IDR_DECLARATIVE_CONTENT_CUSTOM_BINDINGS_JS); 656 IDR_DECLARATIVE_CONTENT_CUSTOM_BINDINGS_JS);
657 source_map_.RegisterSource("declarativeWebRequest", 657 source_map_.RegisterSource("declarativeWebRequest",
658 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS); 658 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS);
659 source_map_.RegisterSource("downloads", 659 source_map_.RegisterSource("downloads",
660 IDR_DOWNLOADS_CUSTOM_BINDINGS_JS); 660 IDR_DOWNLOADS_CUSTOM_BINDINGS_JS);
661 source_map_.RegisterSource( 661 source_map_.RegisterSource(
662 "experimental.mediaGalleries", 662 "experimental.mediaGalleries",
663 IDR_EXPERIMENTAL_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); 663 IDR_EXPERIMENTAL_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS);
664 source_map_.RegisterSource("experimental.offscreen", 664 source_map_.RegisterSource("experimental.offscreen",
665 IDR_EXPERIMENTAL_OFFSCREENTABS_CUSTOM_BINDINGS_JS); 665 IDR_EXPERIMENTAL_OFFSCREENTABS_CUSTOM_BINDINGS_JS);
666 source_map_.RegisterSource("experimental.notification", 666 source_map_.RegisterSource("notifications",
667 IDR_NOTIFICATION_CUSTOM_BINDINGS_JS); 667 IDR_NOTIFICATIONS_CUSTOM_BINDINGS_JS);
dharcourt 2013/03/04 23:46:27 Nit: Move down to preserve alphabetical order.
668 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS); 668 source_map_.RegisterSource("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS);
669 source_map_.RegisterSource("fileBrowserHandler", 669 source_map_.RegisterSource("fileBrowserHandler",
670 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS); 670 IDR_FILE_BROWSER_HANDLER_CUSTOM_BINDINGS_JS);
671 source_map_.RegisterSource("fileBrowserPrivate", 671 source_map_.RegisterSource("fileBrowserPrivate",
672 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS); 672 IDR_FILE_BROWSER_PRIVATE_CUSTOM_BINDINGS_JS);
673 source_map_.RegisterSource("fileSystem", 673 source_map_.RegisterSource("fileSystem",
674 IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS); 674 IDR_FILE_SYSTEM_CUSTOM_BINDINGS_JS);
675 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS); 675 source_map_.RegisterSource("i18n", IDR_I18N_CUSTOM_BINDINGS_JS);
676 source_map_.RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS); 676 source_map_.RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS);
677 source_map_.RegisterSource("mediaGalleries", 677 source_map_.RegisterSource("mediaGalleries",
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str()); 1163 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str());
1164 v8::ThrowException( 1164 v8::ThrowException(
1165 v8::Exception::Error(v8::String::New(error_msg.c_str()))); 1165 v8::Exception::Error(v8::String::New(error_msg.c_str())));
1166 return false; 1166 return false;
1167 } 1167 }
1168 1168
1169 return true; 1169 return true;
1170 } 1170 }
1171 1171
1172 } // namespace extensions 1172 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698