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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 7523063: Add a hook for capturing a user profile photo and saving it to file and local state. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed Nirnimesh's comments Created 9 years, 5 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/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index d892388f609154fc306b555b959c284e1a0b3004..add4e9c2f549f932bb73dfcef47c1d461ed06a75 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -2267,6 +2267,7 @@ void TestingAutomationProvider::SendJSONRequest(int handle,
handler_map["GetVolumeInfo"] = &TestingAutomationProvider::GetVolumeInfo;
handler_map["SetVolume"] = &TestingAutomationProvider::SetVolume;
handler_map["SetMute"] = &TestingAutomationProvider::SetMute;
+
#endif // defined(OS_CHROMEOS)
std::map<std::string, BrowserJsonHandler> browser_handler_map;
@@ -2431,6 +2432,12 @@ void TestingAutomationProvider::SendJSONRequest(int handle,
browser_handler_map["SetAppLaunchType"] =
&TestingAutomationProvider::SetAppLaunchType;
+#if defined(OS_CHROMEOS)
+ browser_handler_map["CaptureProfilePhoto"] =
+ &TestingAutomationProvider::CaptureProfilePhoto;
+
+#endif // defined(OS_CHROMEOS)
+
if (handler_map.find(std::string(command)) != handler_map.end()) {
(this->*handler_map[command])(dict_value, reply_message);
} else if (browser_handler_map.find(std::string(command)) !=

Powered by Google App Engine
This is Rietveld 408576698