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

Issue 9750002: Write "http://disney.com" to the clipboard when copying URLs in incognito mode.

Created:
8 years, 9 months ago by Nico
Modified:
6 years, 6 months ago
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Write "http://disney.com" to the clipboard when copying URLs in incognito mode. BUG=none TEST=Send email to chromium-dev about a build breakage. "sample build output here" link points to disney.com.

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Nico
8 years, 9 months ago (2012-03-20 06:12:48 UTC) #1
KushalP
On 2012/03/20 06:12:48, Nico wrote: LGTM Please get this important CL merged into the tree!
8 years, 9 months ago (2012-03-20 11:17:29 UTC) #2
mathias
The trailing slash is missing: http://disney.com/
8 years, 9 months ago (2012-03-20 12:21:21 UTC) #3
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/9750002/diff/1/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): https://chromiumcodereview.appspot.com/9750002/diff/1/chrome/browser/autocomplete/autocomplete_edit.cc#newcode361 chrome/browser/autocomplete/autocomplete_edit.cc:361: bool is_incognito = profile_->GetOriginalProfile() != profile_; This is the ...
8 years, 9 months ago (2012-03-20 15:14:29 UTC) #4
Nico
8 years, 9 months ago (2012-03-20 15:24:49 UTC) #5
mathias: For the url pasteboard flavor, GURL knows how to add the /. For the
text pasteboard flavor, trailing /s look ugly, so I figured I'd leave it out
even if it's technically less correct.

https://chromiumcodereview.appspot.com/9750002/diff/1/chrome/browser/autocomp...
File chrome/browser/autocomplete/autocomplete_edit.cc (right):

https://chromiumcodereview.appspot.com/9750002/diff/1/chrome/browser/autocomp...
chrome/browser/autocomplete/autocomplete_edit.cc:361: bool is_incognito =
profile_->GetOriginalProfile() != profile_;
On 2012/03/20 15:14:30, Avi wrote:
> This is the wrong way to do it.
> 
> bool is_incognito = profile_->IsOffTheRecord();
> 
> Don't forget that a Profile is a BrowserContext.

Done.

Powered by Google App Engine
This is Rietveld 408576698