Lines Matching refs:extension
51 CrashNotificationDelegate(Profile* profile, const Extension* extension) in CrashNotificationDelegate() argument
53 is_hosted_app_(extension->is_hosted_app()), in CrashNotificationDelegate()
54 extension_id_(extension->id()) { in CrashNotificationDelegate()
91 void ShowBalloon(const Extension* extension, Profile* profile) { in ShowBalloon() argument
93 extension->is_hosted_app() ? IDS_BACKGROUND_CRASHED_APP_BALLOON_MESSAGE : in ShowBalloon()
95 UTF8ToUTF16(extension->name())); in ShowBalloon()
97 extension->GetIconURL(Extension::EXTENSION_ICON_SMALLISH, in ShowBalloon()
101 extension->url(), GURL(content_url), string16(), string16(), in ShowBalloon()
102 new CrashNotificationDelegate(profile, extension)); in ShowBalloon()
227 const Extension* extension = in Observe() local
229 if (extension && extension->background_url().is_valid()) in Observe()
236 const Extension* extension = Details<const Extension>(details).ptr(); in Observe() local
238 if (extension->is_hosted_app() && in Observe()
239 extension->background_url().is_valid()) { in Observe()
242 ShutdownAssociatedBackgroundContents(ASCIIToUTF16(extension->id())); in Observe()
249 LoadBackgroundContents(profile, extension->background_url(), in Observe()
250 ASCIIToUTF16("background"), UTF8ToUTF16(extension->id())); in Observe()
255 ScheduleCloseBalloon(extension->id()); in Observe()
261 const Extension* extension = NULL; in Observe() local
268 extension = in Observe()
272 extension = extension_host->extension(); in Observe()
274 if (!extension) in Observe()
283 NewRunnableFunction(&ShowBalloon, extension, profile)); in Observe()
292 Details<UnloadedExtensionInfo>(details)->extension->id())); in Observe()
299 const Extension* extension = in Observe() local
300 Details<UnloadedExtensionInfo>(details)->extension; in Observe()
301 if (extension->background_url().is_valid()) in Observe()
302 ShutdownAssociatedBackgroundContents(ASCIIToUTF16(extension->id())); in Observe()
309 Details<UnloadedExtensionInfo>(details)->extension->id())); in Observe()
342 const Extension* extension = extensions_service->GetExtensionById( in LoadBackgroundContentsFromPrefs() local
344 if (!extension) { in LoadBackgroundContentsFromPrefs()
361 const Extension* extension = in LoadBackgroundContentsForExtension() local
363 DCHECK(!extension || extension->is_hosted_app()); in LoadBackgroundContentsForExtension()
364 if (extension && extension->background_url().is_valid()) { in LoadBackgroundContentsForExtension()
366 extension->background_url(), in LoadBackgroundContentsForExtension()
368 UTF8ToUTF16(extension->id())); in LoadBackgroundContentsForExtension()
409 const Extension* extension = *iter; in LoadBackgroundContentsFromManifests() local
410 if (extension->is_hosted_app() && in LoadBackgroundContentsFromManifests()
411 extension->background_url().is_valid()) { in LoadBackgroundContentsFromManifests()
413 extension->background_url(), in LoadBackgroundContentsFromManifests()
415 UTF8ToUTF16(extension->id())); in LoadBackgroundContentsFromManifests()