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

Issue 1543923002: [Extensions] Fix chrome url override settings (Closed)

Created:
4 years, 12 months ago by Devlin
Modified:
4 years, 11 months ago
Reviewers:
Finnur
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Fix chrome url override settings Previously, chrome url overrides were added and removed at extension load and unload. They should instead be added at install time, updated when the extension is unloaded, and removed when the extension is uninstalled. Change the pref from a string (of the url) to a dictionary with { entry: <url>, active: <bool> } to allow for inactive, but retained, entries. Also add regression tests. BUG=571429 Committed: https://crrev.com/5fafa5aa3c2bde50f4f50511f134192147f86b55 Cr-Commit-Position: refs/heads/master@{#367137}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Finnur's #

Patch Set 3 : Latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -146 lines) Patch
M chrome/browser/extensions/extension_message_bubble_controller_unittest.cc View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_override_apitest.cc View 1 2 7 chunks +138 lines, -28 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.h View 1 chunk +23 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 2 5 chunks +209 lines, -93 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui_override_registrar.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui_override_registrar.cc View 3 chunks +27 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui_unittest.cc View 1 2 4 chunks +14 lines, -1 line 0 comments Download
D chrome/test/data/extensions/api_test/override/newtab/background.js View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/override/newtab/manifest.json View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/override/newtab/newtab.js View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/override/newtab2/manifest.json View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/override/newtab2/override.html View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/override/newtab2/override.js View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (19 generated)
Devlin
Finnur, mind taking a look? This turned out a little more complicated than I wanted ...
4 years, 12 months ago (2015-12-22 23:31:23 UTC) #6
Devlin
(Also, trybots are refusing to patch for some reason - I just synced and it ...
4 years, 12 months ago (2015-12-22 23:31:55 UTC) #7
Finnur
LGTM, with nits. https://codereview.chromium.org/1543923002/diff/40001/chrome/browser/extensions/extension_override_apitest.cc File chrome/browser/extensions/extension_override_apitest.cc (right): https://codereview.chromium.org/1543923002/diff/40001/chrome/browser/extensions/extension_override_apitest.cc#newcode62 chrome/browser/extensions/extension_override_apitest.cc:62: return testing::AssertionFailure() << gurl; Does this ...
4 years, 12 months ago (2015-12-23 13:08:03 UTC) #8
Devlin
https://codereview.chromium.org/1543923002/diff/40001/chrome/browser/extensions/extension_override_apitest.cc File chrome/browser/extensions/extension_override_apitest.cc (right): https://codereview.chromium.org/1543923002/diff/40001/chrome/browser/extensions/extension_override_apitest.cc#newcode62 chrome/browser/extensions/extension_override_apitest.cc:62: return testing::AssertionFailure() << gurl; On 2015/12/23 13:08:03, Finnur wrote: ...
4 years, 11 months ago (2015-12-30 03:10:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1543923002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1543923002/240001
4 years, 11 months ago (2015-12-30 03:11:19 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:240001)
4 years, 11 months ago (2015-12-30 03:42:16 UTC) #24
commit-bot: I haz the power
4 years, 11 months ago (2015-12-30 03:43:22 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5fafa5aa3c2bde50f4f50511f134192147f86b55
Cr-Commit-Position: refs/heads/master@{#367137}

Powered by Google App Engine
This is Rietveld 408576698