Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 3522015: Implement new strategy for default apps (Closed)

Created:
10 years, 2 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Erik does not do reviews, arv (Not doing code reviews), pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Implement new strategy for default apps. Instead of using the component extension system, simply install them as normal apps the first time Chrome runs. Remove the old style default apps. This also removes support for --disable-apps, which doesn't seem necessary since we already have --disable-extensions. BUG=53972 TEST=Uninstall any installed apps. Remove the "default_apps_installed" and "app_promo_counter" keys from Preferences if they are present. Start Chrome with the --enable-default-apps flag, navigate to chrome://extensions/, and click "update now" in the developer tools. This is to make the updater grab the apps from the store quicker, so that you don't have to wait while testing. Normally Chrome would do this by itself after 5-40 mins. Go to NTP. You should see gmail, calendar, and docs default apps show up along with the promo (the text that says "New! A world of ..."). Refresh the NTP 10 times. The promo should go away on the 10th time. There are other details. To test each of these, remove all installed apps and remove the keys from the preferences to reset the state. * If you close Chrome before getting the default apps. They should still show up the next time Chrome is started (after clicking 'Update now') * Clicking "hide this message" should hide the promo and it shouldn't come back on refresh. * Installing or uninstalling any app should hide the promo, and it shouldn't come back. * If the keys from the preferences are removed, but apps are left installed, the default apps should not be installed when clicking 'update now'. * The default apps should only be installed in locale en-US. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=62084

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 21

Patch Set 3 : all done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -276 lines) Patch
M chrome/browser/browser_init.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/browser_resources.grd View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/app_launcher_handler.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/app_launcher_handler.cc View 1 2 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/dom_ui/ntp_resource_cache.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/extensions/default_apps.h View 1 2 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/extensions/default_apps.cc View 1 2 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/extensions/default_apps_unittest.cc View 1 2 1 chunk +132 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/extensions/extension_updater_unittest.cc View 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 1 2 10 chunks +24 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 10 chunks +60 lines, -21 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profile_impl.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profile_impl.cc View 1 2 6 chunks +39 lines, -29 lines 0 comments Download
D chrome/browser/resources/calendar_app/128.png View Binary file 0 comments Download
D chrome/browser/resources/calendar_app/24.png View Binary file 0 comments Download
D chrome/browser/resources/calendar_app/32.png View Binary file 0 comments Download
D chrome/browser/resources/calendar_app/48.png View Binary file 0 comments Download
D chrome/browser/resources/calendar_app/manifest.json View 1 chunk +0 lines, -24 lines 0 comments Download
D chrome/browser/resources/docs_app/128.png View Binary file 0 comments Download
D chrome/browser/resources/docs_app/24.png View Binary file 0 comments Download
D chrome/browser/resources/docs_app/32.png View Binary file 0 comments Download
D chrome/browser/resources/docs_app/48.png View Binary file 0 comments Download
D chrome/browser/resources/docs_app/manifest.json View 1 chunk +0 lines, -44 lines 0 comments Download
D chrome/browser/resources/gmail_app/128.png View Binary file 0 comments Download
D chrome/browser/resources/gmail_app/24.png View Binary file 0 comments Download
D chrome/browser/resources/gmail_app/32.png View Binary file 0 comments Download
D chrome/browser/resources/gmail_app/48.png View Binary file 0 comments Download
D chrome/browser/resources/gmail_app/manifest.json View 1 chunk +0 lines, -25 lines 0 comments Download
M chrome/browser/resources/new_new_tab.html View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/new_new_tab.js View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp/apps.css View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/ntp/apps.js View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/shell_integration.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/utility_process_host.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 2 chunks +2 lines, -35 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 4 chunks +2 lines, -12 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 chunks +2 lines, -14 lines 0 comments Download
M chrome/common/extensions/extension_manifests_unittest.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/installer/mini_installer/chrome.release View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Aaron Boodman
Looks scarier than it is. Start at default_apps*, then look at extensions_service*. The rest is ...
10 years, 2 months ago (2010-10-08 07:56:27 UTC) #1
Erik does not do reviews
some initial comments to get started (I'm not done reviewing yet) http://codereview.chromium.org/3522015/diff/2001/1058 File chrome/browser/extensions/default_apps.cc (right): ...
10 years, 2 months ago (2010-10-08 18:33:40 UTC) #2
Aaron Boodman
http://codereview.chromium.org/3522015/diff/2001/1058 File chrome/browser/extensions/default_apps.cc (right): http://codereview.chromium.org/3522015/diff/2001/1058#newcode38 chrome/browser/extensions/default_apps.cc:38: std::includes(installed_ids.begin(), installed_ids.end(), On 2010/10/08 18:33:40, Erik Kay wrote: > ...
10 years, 2 months ago (2010-10-08 19:37:46 UTC) #3
Erik does not do reviews
http://codereview.chromium.org/3522015/diff/2001/1058 File chrome/browser/extensions/default_apps.cc (right): http://codereview.chromium.org/3522015/diff/2001/1058#newcode38 chrome/browser/extensions/default_apps.cc:38: std::includes(installed_ids.begin(), installed_ids.end(), On 2010/10/08 19:37:46, Aaron Boodman wrote: > ...
10 years, 2 months ago (2010-10-08 19:44:55 UTC) #4
Erik does not do reviews
+skerner, dpolukhin FYI
10 years, 2 months ago (2010-10-08 21:13:21 UTC) #5
Aaron Boodman
http://codereview.chromium.org/3522015/diff/2001/1058 File chrome/browser/extensions/default_apps.cc (right): http://codereview.chromium.org/3522015/diff/2001/1058#newcode38 chrome/browser/extensions/default_apps.cc:38: std::includes(installed_ids.begin(), installed_ids.end(), On 2010/10/08 19:44:55, Erik Kay wrote: > ...
10 years, 2 months ago (2010-10-08 22:33:38 UTC) #6
Erik does not do reviews
LGTM
10 years, 2 months ago (2010-10-08 22:42:22 UTC) #7
Dmitry Polukhin
Few comments: - It looks like on Chrome OS we need more predictable behavior i.e. ...
10 years, 2 months ago (2010-10-09 05:23:56 UTC) #8
Dmitry Polukhin
Please ignore my second comment, since Kan is OK with it. But it is strange ...
10 years, 2 months ago (2010-10-09 05:27:54 UTC) #9
Aaron Boodman
On 2010/10/09 05:23:56, Dmitry Polukhin wrote: > Few comments: > - It looks like on ...
10 years, 2 months ago (2010-10-09 06:28:18 UTC) #10
Dmitry Polukhin
On 2010/10/09 06:28:18, Aaron Boodman wrote: > However it's a bit more complex than it ...
10 years, 2 months ago (2010-10-09 10:05:53 UTC) #11
Aaron Boodman
On 2010/10/09 10:05:53, Dmitry Polukhin wrote: > On 2010/10/09 06:28:18, Aaron Boodman wrote: > > ...
10 years, 2 months ago (2010-10-09 16:22:10 UTC) #12
Dmitry Polukhin
On 2010/10/09 16:22:10, Aaron Boodman wrote: > With that approach, at least some users won't ...
10 years, 2 months ago (2010-10-11 08:01:32 UTC) #13
Dmitry Polukhin
10 years, 2 months ago (2010-10-14 14:57:24 UTC) #14
http://codereview.chromium.org/3522015/diff/2001/1068
File chrome/browser/profile_impl.cc (right):

http://codereview.chromium.org/3522015/diff/2001/1068#newcode423
chrome/browser/profile_impl.cc:423: if
(g_browser_process->GetApplicationLocale() != "en-US")
On 2010/10/08 22:33:38, Aaron Boodman wrote:
> On 2010/10/08 18:33:40, Erik Kay wrote:
> > I wonder if we need to always enable ChromeOS as well?
> 
> I checked with Kan. He said it was ok to only do this in for en-US in Chrome
OS
> too.

What will happen if user changes language? It looks like installed apps will
continue work, is it OK?

Powered by Google App Engine
This is Rietveld 408576698