Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Issue 10559052: Split mode incognito extension can get misleading pref changed events from regular mode (Closed)

Created:
8 years, 6 months ago by mitchellwrosen
Modified:
8 years, 6 months ago
Reviewers:
Bernhard Bauer, battre
CC:
chromium-reviews, Matt Perry, falken
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Split mode incognito extension can get misleading pref changed events from regular mode I implemented the behavior described in comment 6 here: http://code.google.com/p/chromium/issues/detail?id=128017 BUG=128017 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144299

Patch Set 1 #

Total comments: 7

Patch Set 2 : Added test #

Total comments: 4

Patch Set 3 : Fixed callbacks, split mode #

Patch Set 4 : Deleted commented-out lines in extension_preference_api.cc #

Total comments: 2

Patch Set 5 : Wrote test #

Total comments: 22

Patch Set 6 : Nits fixed #

Patch Set 7 : Fixed some callbacks, other nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+378 lines, -36 lines) Patch
M chrome/browser/extensions/extension_event_router.cc View 1 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_pref_value_map.h View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_pref_value_map.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_pref_value_map_unittest.cc View 1 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_preference_apitest.cc View 1 2 3 4 5 6 2 chunks +124 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_preference_helpers.cc View 1 4 chunks +30 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_notifier_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/preference/onchange/manifest.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D chrome/test/data/extensions/api_test/preference/onchange/test.html View 1 1 chunk +0 lines, -6 lines 0 comments Download
A + chrome/test/data/extensions/api_test/preference/onchange_split/manifest.json View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/preference/onchange_split/test.js View 1 2 3 4 5 6 1 chunk +191 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
mitchellwrosen
8 years, 6 months ago (2012-06-19 00:27:36 UTC) #1
Bernhard Bauer
The CL looks pretty good, but an API test would be great. This sort of ...
8 years, 6 months ago (2012-06-19 01:12:56 UTC) #2
mitchellwrosen
On 2012/06/19 01:12:56, Bernhard Bauer wrote: > The CL looks pretty good, but an API ...
8 years, 6 months ago (2012-06-19 16:35:09 UTC) #3
Bernhard Bauer
On 2012/06/19 16:35:09, mitchellwrosen wrote: > On 2012/06/19 01:12:56, Bernhard Bauer wrote: > > The ...
8 years, 6 months ago (2012-06-19 22:09:02 UTC) #4
mitchellwrosen
Is this the kind of test you were looking for? It looks race-conditioney to me. ...
8 years, 6 months ago (2012-06-20 18:28:26 UTC) #5
Bernhard Bauer
Thanks for the test! Of course, the interesting part of this CL is what happens ...
8 years, 6 months ago (2012-06-20 18:55:36 UTC) #6
mitchellwrosen
On 2012/06/20 18:55:36, Bernhard Bauer wrote: https://chromiumcodereview.appspot.com/10559052/diff/8001/chrome/test/data/extensions/api_test/preference/onchange/test.js#newcode61 > chrome/test/data/extensions/api_test/preference/onchange/test.js:61: > pw.thirdPartyCookiesAllowed.set({ > The problem is ...
8 years, 6 months ago (2012-06-20 19:47:02 UTC) #7
mitchellwrosen
(patch 3)
8 years, 6 months ago (2012-06-20 19:47:35 UTC) #8
Bernhard Bauer
https://chromiumcodereview.appspot.com/10559052/diff/11001/chrome/test/data/extensions/api_test/preference/onchange/test.js File chrome/test/data/extensions/api_test/preference/onchange/test.js (right): https://chromiumcodereview.appspot.com/10559052/diff/11001/chrome/test/data/extensions/api_test/preference/onchange/test.js#newcode29 chrome/test/data/extensions/api_test/preference/onchange/test.js:29: chrome.test.fail("Unexpected event: " + JSON.stringify(value)); Nit: Use single quotes ...
8 years, 6 months ago (2012-06-20 20:55:27 UTC) #9
mitchellwrosen
On 2012/06/20 20:55:27, Bernhard Bauer wrote: > https://chromiumcodereview.appspot.com/10559052/diff/11001/chrome/test/data/extensions/api_test/preference/onchange/test.js https://chromiumcodereview.appspot.com/10559052/diff/11001/chrome/test/data/extensions/api_test/preference/onchange/test.js#newcode35 > chrome/test/data/extensions/api_test/preference/onchange/test.js:35: function > openIncognito() { ...
8 years, 6 months ago (2012-06-20 21:11:41 UTC) #10
Bernhard Bauer
On 2012/06/20 21:11:41, mitchellwrosen wrote: > On 2012/06/20 20:55:27, Bernhard Bauer wrote: > > > ...
8 years, 6 months ago (2012-06-20 21:36:43 UTC) #11
mitchellwrosen
Could you explain the difference between split mode and spanning mode?
8 years, 6 months ago (2012-06-20 21:37:33 UTC) #12
Bernhard Bauer
On 2012/06/20 21:37:33, mitchellwrosen wrote: > Could you explain the difference between split mode and ...
8 years, 6 months ago (2012-06-20 21:46:05 UTC) #13
mitchellwrosen
Thanks. I think I need to do something like ExtensionApiTest.IncognitoSplitMode, which runs the same extension ...
8 years, 6 months ago (2012-06-21 18:02:56 UTC) #14
mitchellwrosen
The test is currently passing, but printing out a couple of these: [800:800:0625/183856:30702759031:INFO:CONSOLE(40)] "Uncaught completed", ...
8 years, 6 months ago (2012-06-26 01:44:04 UTC) #15
Bernhard Bauer
That's a nice test, thanks! Just mostly nits below, and a file seems to be ...
8 years, 6 months ago (2012-06-26 08:44:29 UTC) #16
mitchellwrosen
https://chromiumcodereview.appspot.com/10559052/diff/17001/chrome/browser/extensions/extension_preference_apitest.cc File chrome/browser/extensions/extension_preference_apitest.cc (right): https://chromiumcodereview.appspot.com/10559052/diff/17001/chrome/browser/extensions/extension_preference_apitest.cc#newcode7 chrome/browser/extensions/extension_preference_apitest.cc:7: #include "chrome/browser/extensions/extension_test_message_listener.h" On 2012/06/26 08:44:29, Bernhard Bauer wrote: > ...
8 years, 6 months ago (2012-06-26 17:32:52 UTC) #17
Bernhard Bauer
LGTM with two comments addressed. Thanks again! :) https://chromiumcodereview.appspot.com/10559052/diff/17001/chrome/browser/extensions/extension_preference_apitest.cc File chrome/browser/extensions/extension_preference_apitest.cc (right): https://chromiumcodereview.appspot.com/10559052/diff/17001/chrome/browser/extensions/extension_preference_apitest.cc#newcode7 chrome/browser/extensions/extension_preference_apitest.cc:7: #include ...
8 years, 6 months ago (2012-06-26 20:09:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10559052/32001
8 years, 6 months ago (2012-06-26 21:13:06 UTC) #19
commit-bot: I haz the power
8 years, 6 months ago (2012-06-26 22:23:34 UTC) #20
Change committed as 144299

Powered by Google App Engine
This is Rietveld 408576698