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

Unified Diff: chrome/browser/extensions/api/test/test_api.cc

Issue 100653003: Convert ExtensionFunctionDispatcher from Profile to BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_function_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/test/test_api.cc
diff --git a/chrome/browser/extensions/api/test/test_api.cc b/chrome/browser/extensions/api/test/test_api.cc
index c8338523bc2cfc71641d52a4e41b6927cf0ff737..fa2ce013f7fec60508c30b5d30b54e1e6dea4789 100644
--- a/chrome/browser/extensions/api/test/test_api.cc
+++ b/chrome/browser/extensions/api/test/test_api.cc
@@ -54,7 +54,7 @@ TestNotifyPassFunction::~TestNotifyPassFunction() {}
bool TestNotifyPassFunction::RunImpl() {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_TEST_PASSED,
- content::Source<Profile>(dispatcher()->profile()),
+ content::Source<content::BrowserContext>(dispatcher()->browser_context()),
content::NotificationService::NoDetails());
return true;
}
@@ -66,7 +66,7 @@ bool TestNotifyFailFunction::RunImpl() {
EXTENSION_FUNCTION_VALIDATE(params.get());
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_TEST_FAILED,
- content::Source<Profile>(dispatcher()->profile()),
+ content::Source<content::BrowserContext>(dispatcher()->browser_context()),
content::Details<std::string>(&params->message));
return true;
}
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_function_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698