aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyWrapper.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-12 08:37:43 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-12 08:37:43 +0800
commit824dfce72819337e7dad44f9b9c999caadd0e9a2 (patch)
tree5080b21ccbdf078fcd95eb2842e55ffd265aead6 /embed/mozilla/EphyWrapper.cpp
parent3a57d18b63e6cde5a2a3bed06834020794c0ebd9 (diff)
downloadgsoc2013-epiphany-824dfce72819337e7dad44f9b9c999caadd0e9a2.tar
gsoc2013-epiphany-824dfce72819337e7dad44f9b9c999caadd0e9a2.tar.gz
gsoc2013-epiphany-824dfce72819337e7dad44f9b9c999caadd0e9a2.tar.bz2
gsoc2013-epiphany-824dfce72819337e7dad44f9b9c999caadd0e9a2.tar.lz
gsoc2013-epiphany-824dfce72819337e7dad44f9b9c999caadd0e9a2.tar.xz
gsoc2013-epiphany-824dfce72819337e7dad44f9b9c999caadd0e9a2.tar.zst
gsoc2013-epiphany-824dfce72819337e7dad44f9b9c999caadd0e9a2.zip
*** empty log message ***
Diffstat (limited to 'embed/mozilla/EphyWrapper.cpp')
-rw-r--r--embed/mozilla/EphyWrapper.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp
index fcde13437..b5ae3a24a 100644
--- a/embed/mozilla/EphyWrapper.cpp
+++ b/embed/mozilla/EphyWrapper.cpp
@@ -100,26 +100,14 @@ nsresult EphyWrapper::Init (GtkMozEmbed *mozembed)
nsCOMPtr<nsIDocShellHistory> dsHistory = do_QueryInterface (DocShell);
if (!dsHistory) return NS_ERROR_FAILURE;
- static NS_DEFINE_CID(kGlobalHistoryCID, GALEON_GLOBALHISTORY_CID);
-
- nsCOMPtr<nsIFactory> GHFactory;
- result = NS_NewGlobalHistoryFactory(getter_AddRefs(GHFactory));
- if (NS_FAILED(result)) return NS_ERROR_FAILURE;
-
- result = nsComponentManager::RegisterFactory(kGlobalHistoryCID,
- "Global history",
- NS_GLOBALHISTORY_CONTRACTID,
- GHFactory,
- PR_TRUE);
-
- nsCOMPtr<nsIGlobalHistory> inst =
- do_GetService(NS_GLOBALHISTORY_CONTRACTID, &result);
-
mEventListener = new EphyEventListener();
mEventListener->Init (EPHY_EMBED (mozembed));
GetListener();
AttachListeners();
-
+
+ nsCOMPtr<nsIGlobalHistory> inst =
+ do_GetService(NS_GLOBALHISTORY_CONTRACTID, &result);
+
return dsHistory->SetGlobalHistory(inst);
}