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

Unified Diff: chrome/browser/ui/autofill/generated_credit_card_bubble_controller.cc

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/generated_credit_card_bubble_controller.cc
diff --git a/chrome/browser/ui/autofill/generated_credit_card_bubble_controller.cc b/chrome/browser/ui/autofill/generated_credit_card_bubble_controller.cc
index 36d8ced0ffc8f24a365967815e654ec1993bd14a..f49f7c20d11e8896e26b7f2edca5f92f9ca9cff3 100644
--- a/chrome/browser/ui/autofill/generated_credit_card_bubble_controller.cc
+++ b/chrome/browser/ui/autofill/generated_credit_card_bubble_controller.cc
@@ -196,7 +196,7 @@ void GeneratedCreditCardBubbleController::SetupAndShow(
if (!piece.empty() && pieces.size() % 2 == 0) {
const size_t start = contents_text_.size();
TextRange bold_text;
- bold_text.range = ui::Range(start, start + piece.size());
+ bold_text.range = gfx::Range(start, start + piece.size());
bold_text.is_link = false;
contents_text_ranges_.push_back(bold_text);
}
@@ -212,7 +212,7 @@ void GeneratedCreditCardBubbleController::SetupAndShow(
contents_text_.append(ASCIIToUTF16(" ") + learn_more);
const size_t header_size = contents_text_.size();
TextRange end_link;
- end_link.range = ui::Range(header_size - learn_more.size(), header_size);
+ end_link.range = gfx::Range(header_size - learn_more.size(), header_size);
end_link.is_link = true;
contents_text_ranges_.push_back(end_link);

Powered by Google App Engine
This is Rietveld 408576698