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

Unified Diff: chrome/browser/feedback/feedback_dialog_utils.h

Issue 2190653003: [Md Feedback] Add initial data population for dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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/feedback/feedback_dialog_utils.h
diff --git a/chrome/browser/feedback/feedback_dialog_utils.h b/chrome/browser/feedback/feedback_dialog_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..fa7f0f6ee68cc15d280d0a81424e3758b2fe0988
--- /dev/null
+++ b/chrome/browser/feedback/feedback_dialog_utils.h
@@ -0,0 +1,24 @@
+// 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.
+
+#ifndef CHROME_BROWSER_FEEDBACK_FEEDBACK_DIALOG_UTILS_H_
+#define CHROME_BROWSER_FEEDBACK_FEEDBACK_DIALOG_UTILS_H_
+
+class Browser;
+class GURL;
+class Profile;
+
+// Utility functions for the feedback dialog.
+namespace chrome {
+
+// Get the GURL of the active tab when the feedback dialog was invoked, if
+// any.
+GURL GetTargetTabUrl(int session_id, int index);
+
+// Get the profile that should be used to open the feedback dialog.
+Profile* GetFeedbackProfile(Browser* browser);
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_DIALOG_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698