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

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

Issue 7346024: Get rid of the ProfileId. It was added for ceee. I reverted the original change, since it led to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_proxy_api.cc
===================================================================
--- chrome/browser/extensions/extension_proxy_api.cc (revision 92309)
+++ chrome/browser/extensions/extension_proxy_api.cc (working copy)
@@ -33,7 +33,7 @@
void ExtensionProxyEventRouter::OnProxyError(
ExtensionEventRouterForwarder* event_router,
- ProfileId profile_id,
+ void* profile,
int error_code) {
ListValue args;
DictionaryValue* dict = new DictionaryValue();
@@ -45,9 +45,9 @@
std::string json_args;
base::JSONWriter::Write(&args, false, &json_args);
- if (profile_id != Profile::kInvalidProfileId) {
+ if (profile) {
event_router->DispatchEventToRenderers(
- keys::kProxyEventOnProxyError, json_args, profile_id, true, GURL());
+ keys::kProxyEventOnProxyError, json_args, profile, true, GURL());
} else {
event_router->BroadcastEventToRenderers(
keys::kProxyEventOnProxyError, json_args, GURL());
@@ -56,7 +56,7 @@
void ExtensionProxyEventRouter::OnPACScriptError(
ExtensionEventRouterForwarder* event_router,
- ProfileId profile_id,
+ void* profile,
int line_number,
const string16& error) {
ListValue args;
@@ -77,9 +77,9 @@
std::string json_args;
base::JSONWriter::Write(&args, false, &json_args);
- if (profile_id != Profile::kInvalidProfileId) {
+ if (profile) {
event_router->DispatchEventToRenderers(
- keys::kProxyEventOnProxyError, json_args, profile_id, true, GURL());
+ keys::kProxyEventOnProxyError, json_args, profile, true, GURL());
} else {
event_router->BroadcastEventToRenderers(
keys::kProxyEventOnProxyError, json_args, GURL());
« no previous file with comments | « chrome/browser/extensions/extension_proxy_api.h ('k') | chrome/browser/extensions/extension_tts_engine_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698