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

Issue 2299453002: Restrict number of BlimpContents to [0, 1] (Closed)

Created:
4 years, 3 months ago by Menglin
Modified:
4 years, 3 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restrict number of BlimpContents to [0, 1] Currently, if CreateBlimpContents() is called more than once, multiple BlimpContents are created with the same kDummyTabId. In this CL, 1. BlimpContentsManager will return nullptr if CreateBlimpContents() is called when there's an existing BlimpContents. 2. If BlimpContentsManager returns nullptr, BlimpClientContextImpl won't set the delegate. 2. TabBlimpContentsObserver won't be added in Tab.java BUG=642216 Committed: https://crrev.com/10044bb32baafa8bb90026bb30e66387822d7102 Cr-Commit-Position: refs/heads/master@{#415532}

Patch Set 1 #

Total comments: 8

Patch Set 2 : nits #

Patch Set 3 : patch failure fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -2 lines) Patch
M blimp/client/core/blimp_client_context_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M blimp/client/core/contents/blimp_contents_manager.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_manager.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_manager_unittest.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M blimp/client/public/blimp_client_context.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
Menglin
HI David, please review this change. Thanks! Menglin
4 years, 3 months ago (2016-08-30 23:03:08 UTC) #2
David Trainor- moved to gerrit
lgtm with suggestion/nits https://codereview.chromium.org/2299453002/diff/1/blimp/client/core/contents/blimp_contents_manager.h File blimp/client/core/contents/blimp_contents_manager.h (right): https://codereview.chromium.org/2299453002/diff/1/blimp/client/core/contents/blimp_contents_manager.h#newcode62 blimp/client/core/contents/blimp_contents_manager.h:62: bool tab_exists_ = false; Can we ...
4 years, 3 months ago (2016-08-30 23:31:12 UTC) #3
Menglin
https://codereview.chromium.org/2299453002/diff/1/blimp/client/core/contents/blimp_contents_manager.h File blimp/client/core/contents/blimp_contents_manager.h (right): https://codereview.chromium.org/2299453002/diff/1/blimp/client/core/contents/blimp_contents_manager.h#newcode62 blimp/client/core/contents/blimp_contents_manager.h:62: bool tab_exists_ = false; On 2016/08/30 23:31:12, David Trainor ...
4 years, 3 months ago (2016-08-31 00:13:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2299453002/20001
4 years, 3 months ago (2016-08-31 00:13:56 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/121187)
4 years, 3 months ago (2016-08-31 00:45:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2299453002/40001
4 years, 3 months ago (2016-08-31 00:56:30 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-31 01:38:58 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 01:43:14 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/10044bb32baafa8bb90026bb30e66387822d7102
Cr-Commit-Position: refs/heads/master@{#415532}

Powered by Google App Engine
This is Rietveld 408576698