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

Unified Diff: chrome/browser/resources/omnibox/omnibox.js

Issue 628763002: Mojo JS bindings: simplify mojo.connectToService() usage - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed template indentation Created 6 years, 2 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
« no previous file with comments | « no previous file | content/test/data/web_ui_mojo.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/omnibox/omnibox.js
diff --git a/chrome/browser/resources/omnibox/omnibox.js b/chrome/browser/resources/omnibox/omnibox.js
index 3e570c7e0eee5d970ac914b1ef1796f00ed3d688..89f9dd92c48740f8694f7660acee001c21d32ef0 100644
--- a/chrome/browser/resources/omnibox/omnibox.js
+++ b/chrome/browser/resources/omnibox/omnibox.js
@@ -426,7 +426,7 @@ define('main', [
}
OmniboxPageImpl.prototype =
- Object.create(browser.OmniboxPageStub.prototype);
+ Object.create(browser.OmniboxPage.stubClass.prototype);
OmniboxPageImpl.prototype.handleNewAutocompleteResult = function(result) {
progressiveAutocompleteResults.push(result);
@@ -435,10 +435,9 @@ define('main', [
return function() {
connection = new connector.Connection(
- // TODO(sammc): Avoid using NAME_ directly.
serviceProvider.connectToService(
- browser.OmniboxUIHandlerMojoProxy.NAME_),
+ browser.OmniboxUIHandlerMojo.name),
OmniboxPageImpl,
- browser.OmniboxUIHandlerMojoProxy);
+ browser.OmniboxUIHandlerMojo.proxyClass);
};
});
« no previous file with comments | « no previous file | content/test/data/web_ui_mojo.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698