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

Issue 7706024: [Sync] Don't attempt to sync windowless tabs. (Closed)

Created:
9 years, 4 months ago by Nicolas Zea
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), idana
Visibility:
Public.

Description

[Sync] Don't attempt to sync windowless tabs. Previously we would create a tab node before realizing a tab was windowless. Added a check into IsValidTab to prevent this happening. Also ensure we give priority to a tab being destroyed before checking if its valid. In addition several changes were made to make us fail more gracefully. BUG=93172, 92990 TEST=Sync with sessions + instant search Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98339

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fail more gracefully #

Total comments: 4

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -17 lines) Patch
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 10 chunks +31 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Nicolas Zea
Trying a different approach that makes us stricter about creating tab nodes in the first ...
9 years, 4 months ago (2011-08-22 23:40:55 UTC) #1
Yaron
Yep, this works too. It's also cleaner in that we never allocate the unnecessary/unused sync ...
9 years, 4 months ago (2011-08-23 00:31:54 UTC) #2
Yaron
On 2011/08/23 00:31:54, Yaron wrote: > Yep, this works too. It's also cleaner in that ...
9 years, 4 months ago (2011-08-23 00:41:43 UTC) #3
Nicolas Zea
+Drew for the review. Talked with Yaron and what he saw may have been a ...
9 years, 4 months ago (2011-08-24 22:47:33 UTC) #4
tim (not reviewing)
This LGTM http://codereview.chromium.org/7706024/diff/4001/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): http://codereview.chromium.org/7706024/diff/4001/chrome/browser/sync/glue/session_model_associator.cc#newcode240 chrome/browser/sync/glue/session_model_associator.cc:240: if (sync_id == -1) { isn't there ...
9 years, 4 months ago (2011-08-25 20:25:01 UTC) #5
Nicolas Zea
Committing once trybots go green http://codereview.chromium.org/7706024/diff/4001/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): http://codereview.chromium.org/7706024/diff/4001/chrome/browser/sync/glue/session_model_associator.cc#newcode240 chrome/browser/sync/glue/session_model_associator.cc:240: if (sync_id == -1) ...
9 years, 4 months ago (2011-08-25 20:52:01 UTC) #6
commit-bot: I haz the power
9 years, 4 months ago (2011-08-25 22:42:03 UTC) #7
Presubmit check for 7706024-7001 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Warnings **
You might be calling functions intended only for testing from
production code. Please verify that the following usages are OK,
and email joi@chromium.org if you are seeing false positives:
  chrome/browser/sync/glue/session_model_associator.cc:194
    if (waiting_for_change_) QuitLoopForTest(); \
  chrome/browser/sync/glue/session_model_associator.cc:213
    if (waiting_for_change_) QuitLoopForTest();

Powered by Google App Engine
This is Rietveld 408576698