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

Issue 12226125: temporary fix for requestAutocomplete crash (Closed)

Created:
7 years, 10 months ago by Evan Stade
Modified:
7 years, 10 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, Raman Kakilate, benquan, dhollowa+watch_chromium.org, ahutter, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, Albert Bodenhamer, estade+watch_chromium.org, Ilya Sherman
Visibility:
Public.

Description

temporary fix for requestAutocomplete crash fixes the crash while I wait for a review on 12208070 BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182108

Patch Set 1 #

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

Messages

Total messages: 4 (0 generated)
Evan Stade
7 years, 10 months ago (2013-02-12 21:38:38 UTC) #1
Dan Beam
lgtm
7 years, 10 months ago (2013-02-12 22:26:01 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/12226125/1
7 years, 10 months ago (2013-02-12 22:30:34 UTC) #3
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 22:30:36 UTC) #4
Failed to apply patch for
chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:
While running patch -p1 --forward --force --no-backup-if-mismatch;
  patching file chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
  Hunk #1 FAILED at 390.
  1 out of 1 hunk FAILED -- saving rejects to file
chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc.rej

Patch:       chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index
a6e86b0eb50205c046e923bc317f1332f698bbdb..131b8257365c9c9ef81ba2194e0d8385a6157c9b
100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -390,6 +390,8 @@ gfx::Image
AutofillDialogControllerImpl::SuggestionIconForSection(
 
   std::string item_key =
       suggested_cc_.GetItemKeyAt(suggested_cc_.checked_item());
+  if (item_key.empty())
+    return gfx::Image();
   ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
   CreditCard* card = GetManager()->GetCreditCardByGUID(item_key);
   return rb.GetImageNamed(card->IconResourceId());

Powered by Google App Engine
This is Rietveld 408576698