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

Unified Diff: chrome/browser/extensions/extension_test_api.cc

Issue 3035053: Merge 54514 - Set a max limit on extension items' labels in context menus.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/479/src/
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_test_api.cc
===================================================================
--- chrome/browser/extensions/extension_test_api.cc (revision 54953)
+++ chrome/browser/extensions/extension_test_api.cc (working copy)
@@ -4,6 +4,8 @@
#include "chrome/browser/extensions/extension_test_api.h"
+#include <string>
+
#include "chrome/browser/browser.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/extensions/extensions_service.h"
@@ -50,3 +52,14 @@
Browser::OpenURLOffTheRecord(profile(), GURL(url));
return true;
}
+
+bool ExtensionTestSendMessageFunction::RunImpl() {
+ std::string message;
+ EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &message));
+ std::string id = extension_id();
+ NotificationService::current()->Notify(
+ NotificationType::EXTENSION_TEST_MESSAGE,
+ Source<std::string>(&id),
+ Details<std::string>(&message));
+ return true;
+}
« no previous file with comments | « chrome/browser/extensions/extension_test_api.h ('k') | chrome/browser/extensions/extension_test_message_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698