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

Unified Diff: chrome/browser/storage/durable_storage_permission_infobar_delegate_android.cc

Issue 1392023004: Rename android only infobars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again Created 5 years, 2 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/storage/durable_storage_permission_infobar_delegate_android.cc
diff --git a/chrome/browser/storage/durable_storage_permission_infobar_delegate.cc b/chrome/browser/storage/durable_storage_permission_infobar_delegate_android.cc
similarity index 80%
rename from chrome/browser/storage/durable_storage_permission_infobar_delegate.cc
rename to chrome/browser/storage/durable_storage_permission_infobar_delegate_android.cc
index 1d2eac70d7389ef19ff7fced5cab54f496f22fe9..de64590a9d25d706119945c0a4d6033726a604ce 100644
--- a/chrome/browser/storage/durable_storage_permission_infobar_delegate.cc
+++ b/chrome/browser/storage/durable_storage_permission_infobar_delegate_android.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/storage/durable_storage_permission_infobar_delegate.h"
+#include "chrome/browser/storage/durable_storage_permission_infobar_delegate_android.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/infobars/infobar_service.h"
@@ -14,7 +14,7 @@
#include "ui/base/l10n/l10n_util.h"
// static
-infobars::InfoBar* DurableStoragePermissionInfoBarDelegate::Create(
+infobars::InfoBar* DurableStoragePermissionInfoBarDelegateAndroid::Create(
InfoBarService* infobar_service,
const GURL& requesting_frame,
const std::string& display_languages,
@@ -22,22 +22,22 @@ infobars::InfoBar* DurableStoragePermissionInfoBarDelegate::Create(
const PermissionSetCallback& callback) {
return infobar_service->AddInfoBar(
infobar_service->CreateConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate>(
- new DurableStoragePermissionInfoBarDelegate(
+ new DurableStoragePermissionInfoBarDelegateAndroid(
requesting_frame, display_languages, type, callback))));
}
-DurableStoragePermissionInfoBarDelegate::
- DurableStoragePermissionInfoBarDelegate(
+DurableStoragePermissionInfoBarDelegateAndroid::
+ DurableStoragePermissionInfoBarDelegateAndroid(
const GURL& requesting_frame,
const std::string& display_languages,
ContentSettingsType type,
const PermissionSetCallback& callback)
: PermissionInfobarDelegate(requesting_frame, type, callback),
requesting_frame_(requesting_frame),
- display_languages_(display_languages) {
-}
+ display_languages_(display_languages) {}
-base::string16 DurableStoragePermissionInfoBarDelegate::GetMessageText() const {
+base::string16 DurableStoragePermissionInfoBarDelegateAndroid::GetMessageText()
+ const {
return l10n_util::GetStringFUTF16(
IDS_DURABLE_STORAGE_INFOBAR_QUESTION,
url_formatter::FormatUrl(

Powered by Google App Engine
This is Rietveld 408576698