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

Side by Side Diff: chrome/renderer/resources/extensions/schema_binding_generator.js

Issue 11571014: Lazy load chrome.* APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 // Multiply-included file, hence no include guard. 5 exports.generate = function(arg) {
6 6 if (!this[arg])
7 #include "android_webview/common/render_view_messages.h" 7 this[arg] = requireNative(arg).schema;
8 8 return this[arg];
not at google - send to devlin 2012/12/14 00:44:00 I would expect this function to look like: export
cduvall 2012/12/14 02:04:50 Refactor coming soon!
9 }.bind({});
not at google - send to devlin 2012/12/14 00:44:00 why the bind({})? oh, for the cache. Yeah I don't
cduvall 2012/12/14 02:04:50 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698