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

Side by Side Diff: components/translate/core/browser/translate_infobar_delegate.cc

Issue 809333003: Upstream //ios/chrome/browser/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/translate/core/browser/translate_infobar_delegate.h" 5 #include "components/translate/core/browser/translate_infobar_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/i18n/string_compare.h" 9 #include "base/i18n/string_compare.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 return false; 362 return false;
363 363
364 return infobars::InfoBarDelegate::ShouldExpireInternal(details); 364 return infobars::InfoBarDelegate::ShouldExpireInternal(details);
365 } 365 }
366 366
367 TranslateInfoBarDelegate* 367 TranslateInfoBarDelegate*
368 TranslateInfoBarDelegate::AsTranslateInfoBarDelegate() { 368 TranslateInfoBarDelegate::AsTranslateInfoBarDelegate() {
369 return this; 369 return this;
370 } 370 }
371 371
372 #if defined(OS_IOS)
373 void TranslateInfoBarDelegate::ShowNeverTranslateInfobar() {
374 Create(true, translate_manager_, infobar()->owner(), is_off_the_record_,
375 translate::TRANSLATE_STEP_NEVER_TRANSLATE, original_language_code(),
376 target_language_code(), TranslateErrors::NONE, false);
377 }
378 #endif
379
372 } // namespace translate 380 } // namespace translate
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698