code cleanup

This commit is contained in:
deepak1556 2017-01-31 14:55:48 +05:30
parent cbeaa6be87
commit 7a0aff2bae
7 changed files with 21 additions and 22 deletions

View file

@ -8,6 +8,7 @@
#include "atom/common/native_mate_converters/content_converter.h"
#include "atom/common/native_mate_converters/value_converter.h"
#include "atom/common/node_includes.h"
#include "atom/common/options_switches.h"
#include "content/public/browser/browser_context.h"
#include "native_mate/dictionary.h"
@ -26,7 +27,7 @@ void AddGuest(int guest_instance_id,
guest_web_contents);
double zoom_factor;
if (options.GetDouble("zoomFactor", &zoom_factor)) {
if (options.GetDouble(atom::options::kZoomFactor, &zoom_factor)) {
atom::WebContentsZoomController::FromWebContents(guest_web_contents)
->SetDefaultZoomFactor(zoom_factor);
}