Starbucks Corp. has sold bagged coffee in groceries since 1998, when it signed a distribution agreement with Kraft Foods Inc. Starbucks, which has since regained control of the packaged coffee business, said July 26 that its share of the premium coffee segment in groceries, drugstores and mass markets rose to 28.2 percent from 25.6 percent a year earlier.