Bug 766275 - Rename function. r=mfinkle
authorWes Johnston <wjohnston@mozilla.com>
Fri, 20 Jul 2012 11:17:43 -0700
changeset 99948 6e09c52e2c73202c31890d8fe4fe1c6374068def
parent 99947 1cbf95c4c4f163e88bcb35820d20c6771cf51c8b
child 99949 a10834675f4d9c4eefa95b10ae42ff1a6ea746b2
push id23157
push userryanvm@gmail.com
push dateSat, 21 Jul 2012 03:56:05 +0000
treeherdermozilla-central@045c11dd41a6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs766275
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 766275 - Rename function. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -241,17 +241,17 @@ var BrowserApp = {
         pinned = window.arguments[4];
     }
 
     let updated = this.isAppUpdated();
     if (pinned) {
       WebAppRT.init(updated);
     } else {
       SearchEngines.init();
-      this.addBrowserContextMenuItems();
+      this.initContextMenu();
     }
 
     if (url == "about:empty")
       loadParams.flags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_HISTORY;
 
     // XXX maybe we don't do this if the launch was kicked off from external
     Services.io.offline = false;
 
@@ -345,17 +345,17 @@ var BrowserApp = {
 #expand    let ourmstone = "__MOZ_APP_VERSION__";
     if (ourmstone != savedmstone) {
       Services.prefs.setCharPref("browser.startup.homepage_override.mstone", ourmstone);
       return savedmstone ? "upgrade" : "new";
     }
     return "";
   },
 
-  addBrowserContextMenuItems: function ba_addBrowserContextMenuItems() {
+  initContextMenu: function ba_initContextMenu() {
     // TODO: These should eventually move into more appropriate classes
     NativeWindow.contextmenus.add(Strings.browser.GetStringFromName("contextmenu.openInNewTab"),
       NativeWindow.contextmenus.linkOpenableContext,
       function(aTarget) {
         let url = NativeWindow.contextmenus._getLinkURL(aTarget);
         BrowserApp.addTab(url, { selected: false, parentId: BrowserApp.selectedTab.id });
 
         let newtabStrings = Strings.browser.GetStringFromName("newtabpopup.opened");