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

Issue 219593002: Add unit test for the Settings API Bubble. (Closed)

Created:
6 years, 8 months ago by Finnur
Modified:
6 years, 8 months ago
Reviewers:
Yoyo Zhou, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Visibility:
Public.

Description

Add unit test for the Settings API Bubble. Refactored the helper functions into views-specific code and rest (so that the non-views code can be used in more places). Fixed a bug where if you have two extensions simultaneously overwriting settings, the bubble now knows which one is active. Also prevent the bubble from writing the suppress flag when the user choses to disable the extension (that way they get the bubble again if the extension becomes enabled for some reason). BUG=356204 R=sky@chromium.org, yoz@chromium.org TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261438

Patch Set 1 #

Patch Set 2 : Missing files #

Patch Set 3 : Actually add missing files #

Patch Set 4 : Fix enum mismatch #

Patch Set 5 : Fix test #

Total comments: 2

Patch Set 6 : Syncing to head #

Patch Set 7 : Review comments #

Patch Set 8 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -222 lines) Patch
M chrome/browser/extensions/api/settings_overrides/settings_overrides_api.cc View 1 chunk +11 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_message_bubble_controller_unittest.cc View 1 2 3 4 5 6 15 chunks +261 lines, -76 lines 0 comments Download
M chrome/browser/extensions/settings_api_bubble_controller.cc View 1 2 3 2 chunks +15 lines, -15 lines 0 comments Download
A + chrome/browser/extensions/settings_api_helpers.h View 1 2 2 chunks +4 lines, -20 lines 0 comments Download
A chrome/browser/extensions/settings_api_helpers.cc View 1 2 1 chunk +103 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_message_bubble_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/settings_api_bubble_helper_views.h View 2 chunks +0 lines, -31 lines 0 comments Download
M chrome/browser/ui/views/settings_api_bubble_helper_views.cc View 1 3 chunks +1 line, -70 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Finnur
Yoyo, this is a follow-up test that I didn't have time to write for the ...
6 years, 8 months ago (2014-04-01 21:30:40 UTC) #1
sky
LGTM
6 years, 8 months ago (2014-04-01 22:45:44 UTC) #2
Finnur
Yoyo: ping.
6 years, 8 months ago (2014-04-02 20:23:00 UTC) #3
Yoyo Zhou
LGTM https://codereview.chromium.org/219593002/diff/80001/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc File chrome/browser/extensions/extension_message_bubble_controller_unittest.cc (right): https://codereview.chromium.org/219593002/diff/80001/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc#newcode183 chrome/browser/extensions/extension_message_bubble_controller_unittest.cc:183: CreateExtension( Can you use ExtensionBuilder and DictionaryBuilder here? ...
6 years, 8 months ago (2014-04-02 20:36:25 UTC) #4
Finnur
Great suggestions. Implemented both. Checking in.
6 years, 8 months ago (2014-04-03 15:46:12 UTC) #5
Finnur
6 years, 8 months ago (2014-04-03 16:23:16 UTC) #6
Message was sent while issue was closed.
Committed patchset #8 manually as r261438 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698