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

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

Issue 224943004: Revert "Revert 261654 "Move some extension constants out of //chrome."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « chrome/common/localized_error.cc ('k') | extensions/common/constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/extension_helper.h" 5 #include "chrome/renderer/extensions/extension_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/json_string_value_serializer.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/extensions/chrome_extension_messages.h" 15 #include "chrome/common/extensions/chrome_extension_messages.h"
16 #include "chrome/common/extensions/extension_constants.h"
17 #include "chrome/common/render_messages.h" 16 #include "chrome/common/render_messages.h"
18 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
19 #include "chrome/renderer/extensions/chrome_v8_context.h" 18 #include "chrome/renderer/extensions/chrome_v8_context.h"
20 #include "chrome/renderer/extensions/console.h" 19 #include "chrome/renderer/extensions/console.h"
21 #include "chrome/renderer/extensions/dispatcher.h" 20 #include "chrome/renderer/extensions/dispatcher.h"
22 #include "chrome/renderer/extensions/messaging_bindings.h" 21 #include "chrome/renderer/extensions/messaging_bindings.h"
23 #include "chrome/renderer/extensions/user_script_scheduler.h" 22 #include "chrome/renderer/extensions/user_script_scheduler.h"
24 #include "chrome/renderer/extensions/user_script_slave.h" 23 #include "chrome/renderer/extensions/user_script_slave.h"
25 #include "chrome/renderer/web_apps.h" 24 #include "chrome/renderer/web_apps.h"
26 #include "content/public/renderer/render_view.h" 25 #include "content/public/renderer/render_view.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 render_view()->GetWebView()->mainFrame()->mainWorldScriptContext(); 370 render_view()->GetWebView()->mainFrame()->mainWorldScriptContext();
372 ChromeV8Context* chrome_v8_context = 371 ChromeV8Context* chrome_v8_context =
373 dispatcher_->v8_context_set().GetByV8Context(script_context); 372 dispatcher_->v8_context_set().GetByV8Context(script_context);
374 if (!chrome_v8_context) 373 if (!chrome_v8_context)
375 return; 374 return;
376 chrome_v8_context->module_system()->CallModuleMethod( 375 chrome_v8_context->module_system()->CallModuleMethod(
377 "app.window", "onAppWindowClosed"); 376 "app.window", "onAppWindowClosed");
378 } 377 }
379 378
380 } // namespace extensions 379 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/localized_error.cc ('k') | extensions/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698