Now closes existing background contents if app opens a new one.
Work around race conditions on startup where an app page creates a background
page while the BackgroundContentsService is also opening the page. We now close
the existing page instead of opening one of the pages up in a visible tab.
Also added a new browser test to verify this functionality.
BUG=
98046
TEST=Added new browser_test: AppBackgroundPageApiTest.OpenTwoBackgroundPages.
Committed:
http://src.chromium.org/viewvc/chrome?view=rev&revision=104228