Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: chrome/browser/ui/startup/chromedriver_infobar_delegate.h

Issue 2564973002: Add an infobar if a session is being controlled by an automated test. (Closed)
Patch Set: tweak wording, temporarily re-introduce load-component-extension Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/startup/chromedriver_infobar_delegate.h
diff --git a/chrome/browser/ui/startup/chromedriver_infobar_delegate.h b/chrome/browser/ui/startup/chromedriver_infobar_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..6e472b33883e23dfb804e32a5fff731c31d86c97
--- /dev/null
+++ b/chrome/browser/ui/startup/chromedriver_infobar_delegate.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
Devlin 2017/02/01 23:05:00 startup probably isn't the right place for this.
samuong 2017/02/04 00:11:03 Even if ChromeDriver weren't loading an extension,
Devlin 2017/02/06 16:20:21 I don't feel very strongly, so I'll let a ui or ui
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "base/strings/string16.h"
+#include "components/infobars/core/confirm_infobar_delegate.h"
+#include "url/gurl.h"
+class Browser;
+class ChromeDriverInfoBarDelegate : public ConfirmInfoBarDelegate {
+ public:
+ static void Create(Browser* browser);
+ private:
+ ChromeDriverInfoBarDelegate();
+ ~ChromeDriverInfoBarDelegate() override;
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
+ base::string16 GetMessageText() const override;
+ int GetButtons() const override;
+ base::string16 GetLinkText() const override;
+ GURL GetLinkURL() const override;
+ bool ShouldExpire(const NavigationDetails& details) const override;
+ DISALLOW_COPY_AND_ASSIGN(ChromeDriverInfoBarDelegate);

Powered by Google App Engine
This is Rietveld 408576698