X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fautocomplete%2Fshortcuts_backend.cc;h=62ebaf53b15312c841f7830ff14f102245a261dd;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=dda7c5b9a0ee3cd0ddeb77a72d0f508955abd85c;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/autocomplete/shortcuts_backend.cc b/src/chrome/browser/autocomplete/shortcuts_backend.cc index dda7c5b..62ebaf5 100644 --- a/src/chrome/browser/autocomplete/shortcuts_backend.cc +++ b/src/chrome/browser/autocomplete/shortcuts_backend.cc @@ -30,8 +30,11 @@ #include "content/public/browser/browser_thread.h" #include "content/public/browser/notification_details.h" #include "content/public/browser/notification_source.h" + +#if defined(ENABLE_EXTENSIONS) #include "extensions/browser/notification_types.h" #include "extensions/common/extension.h" +#endif using content::BrowserThread; @@ -83,10 +86,12 @@ ShortcutsBackend::ShortcutsBackend(Profile* profile, bool suppress_db) } // |profile| can be NULL in tests. if (profile) { +#if defined(ENABLE_EXTENSIONS) notification_registrar_.Add( this, extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, content::Source(profile)); +#endif notification_registrar_.Add( this, chrome::NOTIFICATION_HISTORY_URLS_DELETED, content::Source(profile)); @@ -177,6 +182,7 @@ void ShortcutsBackend::Observe(int type, if (!initialized()) return; +#if defined(ENABLE_EXTENSIONS) if (type == extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED) { // When an extension is unloaded, we want to remove any Shortcuts associated // with it. @@ -184,6 +190,7 @@ void ShortcutsBackend::Observe(int type, details)->extension->url(), false); return; } +#endif DCHECK_EQ(chrome::NOTIFICATION_HISTORY_URLS_DELETED, type); const history::URLsDeletedDetails* deleted_details =