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

Side by Side Diff: chrome/browser/extensions/extension_function.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/extensions/extension_function.h" 5 #include "chrome/browser/extensions/extension_function.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/extensions/extension_function_dispatcher.h" 9 #include "chrome/browser/extensions/extension_function_dispatcher.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 25 matching lines...) Expand all
36 const NotificationSource& source, 36 const NotificationSource& source,
37 const NotificationDetails& details) { 37 const NotificationDetails& details) {
38 CHECK(type == content::NOTIFICATION_RENDER_VIEW_HOST_DELETED); 38 CHECK(type == content::NOTIFICATION_RENDER_VIEW_HOST_DELETED);
39 CHECK(Source<RenderViewHost>(source).ptr() == 39 CHECK(Source<RenderViewHost>(source).ptr() ==
40 function_->render_view_host()); 40 function_->render_view_host());
41 function_->SetRenderViewHost(NULL); 41 function_->SetRenderViewHost(NULL);
42 } 42 }
43 43
44 ExtensionFunction::ExtensionFunction() 44 ExtensionFunction::ExtensionFunction()
45 : request_id_(-1), 45 : request_id_(-1),
46 profile_id_(Profile::kInvalidProfileId), 46 profile_(NULL),
47 has_callback_(false), 47 has_callback_(false),
48 include_incognito_(false), 48 include_incognito_(false),
49 user_gesture_(false), 49 user_gesture_(false),
50 args_(NULL), 50 args_(NULL),
51 bad_message_(false) { 51 bad_message_(false) {
52 } 52 }
53 53
54 ExtensionFunction::~ExtensionFunction() { 54 ExtensionFunction::~ExtensionFunction() {
55 } 55 }
56 56
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { 194 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() {
195 } 195 }
196 196
197 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { 197 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() {
198 } 198 }
199 199
200 void SyncIOThreadExtensionFunction::Run() { 200 void SyncIOThreadExtensionFunction::Run() {
201 SendResponse(RunImpl()); 201 SendResponse(RunImpl());
202 } 202 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function.h ('k') | chrome/browser/extensions/extension_function_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698